# CVE-2026-64518: tcp: Fix out-of-bounds access for twsk in tcp_ao_established_key().

- Severity: High 7.1 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.13%, higher than 2% of CVEs (2026-12-01)
- Published: 2026-07-25T09:14:44.603Z
- Modified: 2026-11-17T20:12:17.647Z
- Weaknesses: CWE-125
- Assigned by: Linux

## Description

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.

(As written by CVE List.)

## Affected

- Linux Linux: from 051f49d5176613dea88ecf73a101c3a99f4720e9 before 87bb3e719042f0030a6dad39118c6a6b2a491ad9; from 6b2d11e2d8fc130df4708be0b6b53fd3e6b54cf6 before 510db031ba6eb40134f84c90ef963ea4b6dfb878; from 6b2d11e2d8fc130df4708be0b6b53fd3e6b54cf6 before 29cf64d128c94cf98d1c69d8b2962d39db5ff4c6; from 6b2d11e2d8fc130df4708be0b6b53fd3e6b54cf6 before 03cb001ef87b3f8d859cf7f96329acf3d6235d29; from 6.12.5 before 6.12.92; 6.13 (not affected: before 6.13; from 6.12.92 up to 6.12.*; from 6.18.34 up to 6.18.*; from 7.0.11 up to 7.0.*; from 7.1 up to *)
- linux linux_kernel: from 6.12.5 before 6.12.92; from 6.13 before 6.18.34; from 6.19 before 7.0.11; 7.1

## References

- <https://git.kernel.org/stable/c/87bb3e719042f0030a6dad39118c6a6b2a491ad9> (patch)
- <https://git.kernel.org/stable/c/510db031ba6eb40134f84c90ef963ea4b6dfb878> (patch)
- <https://git.kernel.org/stable/c/29cf64d128c94cf98d1c69d8b2962d39db5ff4c6> (patch)
- <https://git.kernel.org/stable/c/03cb001ef87b3f8d859cf7f96329acf3d6235d29> (patch)

## Sources

- CVE List: [CVE-2026-64518](https://www.cve.org/CVERecord?id=CVE-2026-64518), CVE Terms of Use, modified 2026-07-25
- NVD: [CVE-2026-64518](https://nvd.nist.gov/vuln/detail/CVE-2026-64518), Public domain, modified 2026-11-17

---

Page: https://cve.day/CVE-2026-64518 · Whole record: https://cve.day/CVE-2026-64518.json · Rebuilt by cve.day 2026-11-25T22:59:30.156Z
