Linux
tcp: Fix out-of-bounds access for twsk in tcp_ao_established_key().
In the Linux kernel, the following vulnerability has been resolved: tcp: Fix out-of-bounds access for twsk in tcp_ao_established_key(). lockdep_sock_is_held() was added in tcp_ao_established_key() by the cited commit. It can be called from tcp_v[46]_timewait_ack() with twsk. Since it does not have sk->sk_lock, the lockdep annotation results in out-of-bound access. $ pahole -C tcp_timewait_sock vmlinux | grep size /* size: 288, cachelines: 5, members: 8 */ $ pahole -C sock vmlinux | grep sk_lock socket_lock_t sk_lock; /* 440 192 */ Let's not use lockdep_sock_is_held() for TCP_TIME_WAIT.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 051f49d5176613dea88ecf73a101c3a99f4720e9, < 87bb3e719042f0030a6dad39118c6a6b2a491ad9
- >= 6b2d11e2d8fc130df4708be0b6b53fd3e6b54cf6, < 510db031ba6eb40134f84c90ef963ea4b6dfb878
- >= 6b2d11e2d8fc130df4708be0b6b53fd3e6b54cf6, < 29cf64d128c94cf98d1c69d8b2962d39db5ff4c6
- >= 6b2d11e2d8fc130df4708be0b6b53fd3e6b54cf6, < 03cb001ef87b3f8d859cf7f96329acf3d6235d29
- >= 6.12.5, < 6.12.92
Fixed in 87bb3e719042f0030a6dad39118c6a6b2a491ad9, 510db031ba6eb40134f84c90ef963ea4b6dfb878, 29cf64d128c94cf98d1c69d8b2962d39db5ff4c6, 03cb001ef87b3f8d859cf7f96329acf3d6235d29, 6.12.92
- 6.13
Fixed in 0, 6.12.92, 6.18.34, 7.0.11, 7.1
Mitigation
Upgrade Linux to 87bb3e719042f0030a6dad39118c6a6b2a491ad9 or 510db031ba6eb40134f84c90ef963ea4b6dfb878 or 29cf64d128c94cf98d1c69d8b2962d39db5ff4c6 or 03cb001ef87b3f8d859cf7f96329acf3d6235d29 or 6.12.92 or later.
Upgrade Linux to 0 or 6.12.92 or 6.18.34 or 7.0.11 or 7.1 or later.
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.