# CVE-2024-40985: net/tcp_ao: Don't leak ao_info on error-path

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/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.24%, higher than 15% of CVEs (2026-12-01)
- Published: 2024-07-12T12:37:31.133Z
- Modified: 2026-06-17T07:47:01.383Z
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

net/tcp_ao: Don't leak ao_info on error-path

It seems I introduced it together with TCP_AO_CMDF_AO_REQUIRED, on
version 5 [1] of TCP-AO patches. Quite frustrative that having all these
selftests that I've written, running kmemtest & kcov was always in todo.

[1]: https://lore.kernel.org/netdev/20230215183335.800122-5-dima@arista.com/

(As written by CVE List.)

## Affected

- Linux Linux: from 0aadc73995d08f6b0dc061c14a564ffa46f5914e before ebaa7d3c26332330a48f9a15f8e518d526cc0f21; from 0aadc73995d08f6b0dc061c14a564ffa46f5914e before f9ae848904289ddb16c7c9e4553ed4c64300de49; 6.7 (not affected: before 6.7; from 6.9.7 up to 6.9.*; from 6.10 up to *)
- linux linux_kernel: from 6.7 before 6.9.7; 6.10

## References

- <https://git.kernel.org/stable/c/ebaa7d3c26332330a48f9a15f8e518d526cc0f21> (patch)
- <https://git.kernel.org/stable/c/f9ae848904289ddb16c7c9e4553ed4c64300de49> (patch)

## Sources

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

---

Page: https://cve.day/CVE-2024-40985 · Whole record: https://cve.day/CVE-2024-40985.json · Rebuilt by cve.day 2026-11-25T22:58:42.877Z
