gtp: serialize PDP context updates
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel d9a83492ffc99f228d91873473e3820300525f00, Kernel 1e995498d29784a06a2b2899370a1926cfc8410d, Kernel 3d950e98f74af9611925a5226edced02155f6ed1 and 14 more.
In the Linux kernel, the following vulnerability has been resolved: gtp: serialize PDP context updates PDP contexts can be deleted through GTP_CMD_DELPDP or while the GTP network device is being unregistered. The latter is serialized by RTNL, but the generic-netlink delete path only holds RCU. Running both paths concurrently can therefore make both paths delete the same PDP context. The issue was found through static analysis and reproduced on a KASAN-enabled kernel by a simple two-thread program racing GTP_CMD_DELPDP against RTM_DELLINK: Oops: general protection fault, probably for non-canonical address KASAN: maybe wild-memory-access in range [0xdead000000000120-0xdead000000000127] RIP: gtp_genl_del_pdp+0x1c1/0x420 [gtp] RBP: dead000000000122 The second deletion dereferenced the poisoned hlist pprev pointer. Serialize gtp_pdp_add(), gtp_genl_del_pdp(), and gtp_dellink() with a shared mutex. Keep the mutex held until the final use of a PDP context in the NEWPDP path, and keep the RCU read-side section around the complete PDP context use in the DELPDP path.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | >=459aa660eb1d8ce67080da1983bb81d716aa5a69 <d9a83492ffc99f228d91873473e3820300525f00, >=459aa660eb1d8ce67080da1983bb81d716aa5a69 <1e995498d29784a06a2b2899370a1926cfc8410d, >=459aa660eb1d8ce67080da1983bb81d716aa5a69 <3d950e98f74af9611925a5226edced02155f6ed1, >=459aa660eb1d8ce67080da1983bb81d716aa5a69 <498386b6d402737db1e2eeed4c385acbf0ef9e34, >=459aa660eb1d8ce67080da1983bb81d716aa5a69 <5f77ddb2756340c1b05381674ca025d52998005e, >=459aa660eb1d8ce67080da1983bb81d716aa5a69 <6df4f05bc2991467939d7d80b6f7e121559cc3df, >=459aa660eb1d8ce67080da1983bb81d716aa5a69 <6e5472c1c1619793cbadb02bccf7d2d9f826052f, >=459aa660eb1d8ce67080da1983bb81d716aa5a69 <b4ac2a5ce5a96ec21ed48f60d30b52b1fb22c62a, >=459aa660eb1d8ce67080da1983bb81d716aa5a69 <d8ebf8875fb97b3e39aa226af78f9c619e96ee31, =4.7 | d9a83492ffc99f228d91873473e3820300525f00, 1e995498d29784a06a2b2899370a1926cfc8410d, 3d950e98f74af9611925a5226edced02155f6ed1, 498386b6d402737db1e2eeed4c385acbf0ef9e34, 5f77ddb2756340c1b05381674ca025d52998005e, 6df4f05bc2991467939d7d80b6f7e121559cc3df, 6e5472c1c1619793cbadb02bccf7d2d9f826052f, b4ac2a5ce5a96ec21ed48f60d30b52b1fb22c62a, d8ebf8875fb97b3e39aa226af78f9c619e96ee31 |
| linux-kernel: Kernel | >=5.11.0 <5.15.224, >=5.16.0 <6.1.191, >=6.13.0 <6.18.49, >=6.19.0 <7.1.13, >=6.2.0 <6.6.158, >=6.7.0 <6.12.108, >=7.2.0 <7.2.3, >=4.7.0 <5.10.273 | 5.15.224, 6.1.191, 6.18.49, 7.1.13, 6.6.158, 6.12.108, 7.2.3, 5.10.273 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket