CVE-2025-38465
netlink: Fix wraparounds of sk->sk_rmem_alloc.
Mitigation
- No fix listed yet: follow the vendor advisory.
Who should check
- Anyone running Linux >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 9da025150b7c14a8390fc06aea314c0a4011e82c; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < c4ceaac5c5ba0b992ee1dc88e2a02421549e5c98; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < fd69af06101090eaa60b3d216ae715f9c0a58e5b; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 76602d8e13864524382b0687dc32cd8f19164d5a; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 55baecb9eb90238f60a8350660d6762046ebd3bd; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 4b8e18af7bea92f8b7fb92d40aeae729209db250; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < cd7ff61bfffd7000143c42bbffb85eeb792466d6; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < ae8f160e7eb24240a2a79fc4c815c6a0d4ee16cc
- Anyone running Linux 2.6.12
Vulnerability facts
- Affected
- Linux >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 9da025150b7c14a8390fc06aea314c0a4011e82c; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < c4ceaac5c5ba0b992ee1dc88e2a02421549e5c98; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < fd69af06101090eaa60b3d216ae715f9c0a58e5b; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 76602d8e13864524382b0687dc32cd8f19164d5a; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 55baecb9eb90238f60a8350660d6762046ebd3bd; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 4b8e18af7bea92f8b7fb92d40aeae729209db250; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < cd7ff61bfffd7000143c42bbffb85eeb792466d6; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < ae8f160e7eb24240a2a79fc4c815c6a0d4ee16cc; Linux 2.6.12
- Fixed in
- Linux 9da025150b7c14a8390fc06aea314c0a4011e82c, Linux 76602d8e13864524382b0687dc32cd8f19164d5a, Linux 55baecb9eb90238f60a8350660d6762046ebd3bd, Linux 4b8e18af7bea92f8b7fb92d40aeae729209db250
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Not remotely exploitable (local or adjacent access needed)
- CVSS
- 5.5 (v3.1, NVD)CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Local
- Attack complexity: Low
- Privileges required: Low
- User interaction: None
- Scope: Unchanged
- Confidentiality impact: None
- Integrity impact: None
- Availability impact: High
- EPSS
- 0.29% chance of exploitation in 30 days (percentile 14, 2026-11-26)
- CWE
- CWE-401
- Modified
Description
In the Linux kernel, the following vulnerability has been resolved: netlink: Fix wraparounds of sk->sk_rmem_alloc. Netlink has this pattern in some places if (atomic_read(&sk->sk_rmem_alloc) > sk->sk_rcvbuf) atomic_add(skb->truesize, &sk->sk_rmem_alloc); , which has the same problem fixed by commit 5a465a0da13e ("udp: Fix multiple wraparounds of sk->sk_rmem_alloc."). For example, if we set INT_MAX to SO_RCVBUFFORCE, the condition is always false as the two operands are of int. Then, a single socket can eat as many skb as possible until OOM happens, and we can see multiple wraparounds of sk->sk_rmem_alloc. Let's fix it by using atomic_add_return() and comparing the two variables as unsigned int. Before: [root@fedora ~]# ss -f netlink Recv-Q Send-Q Local Address:Port Peer Address:Port -1668710080 0 rtnl:nl_wraparound/293 * After: [root@fedora ~]# ss -f netlink Recv-Q Send-Q Local Address:Port Peer Address:Port 2147483072 0 rtnl:nl_wraparound/290 * ^ `--- INT_MAX - 576
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Linux | >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 9da025150b7c14a8390fc06aea314c0a4011e82c; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < c4ceaac5c5ba0b992ee1dc88e2a02421549e5c98; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < fd69af06101090eaa60b3d216ae715f9c0a58e5b; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 76602d8e13864524382b0687dc32cd8f19164d5a; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 55baecb9eb90238f60a8350660d6762046ebd3bd; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 4b8e18af7bea92f8b7fb92d40aeae729209db250; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < cd7ff61bfffd7000143c42bbffb85eeb792466d6; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < ae8f160e7eb24240a2a79fc4c815c6a0d4ee16cc | — | cvelist |
| Linux | 2.6.12 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2025-38465. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2025-38465.md Affected: Linux >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 9da025150b7c14a8390fc06aea314c0a4011e82c; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < c4ceaac5c5ba0b992ee1dc88e2a02421549e5c98; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < fd69af06101090eaa60b3d216ae715f9c0a58e5b; >= 1da177e4c3f41524e886b7f… Fixed in: Linux 9da025150b7c14a8390fc06aea314c0a4011e82c, Linux 76602d8e13864524382b0687dc32cd8f19164d5a, Linux 55baecb9eb90238f60a8350660d6762046ebd3bd, Linux 4b8e18af7bea92f8b7fb92d40aeae729209db250 Steps: 1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Patches
- https://git.kernel.org/stable/c/9da025150b7c14a8390fc06aea314c0a4011e82c
- https://git.kernel.org/stable/c/c4ceaac5c5ba0b992ee1dc88e2a02421549e5c98
- https://git.kernel.org/stable/c/fd69af06101090eaa60b3d216ae715f9c0a58e5b
- https://git.kernel.org/stable/c/76602d8e13864524382b0687dc32cd8f19164d5a
- https://git.kernel.org/stable/c/55baecb9eb90238f60a8350660d6762046ebd3bd
- https://git.kernel.org/stable/c/4b8e18af7bea92f8b7fb92d40aeae729209db250
- https://git.kernel.org/stable/c/cd7ff61bfffd7000143c42bbffb85eeb792466d6
- https://git.kernel.org/stable/c/ae8f160e7eb24240a2a79fc4c815c6a0d4ee16cc
FAQ
Is CVE-2025-38465 being exploited?
There is no confirmed exploitation: CVE-2025-38465 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.29% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2025-38465?
Medium: CVSS 5.5 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).
Which versions are affected by CVE-2025-38465?
Linux >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 9da025150b7c14a8390fc06aea314c0a4011e82c; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < c4ceaac5c5ba0b992ee1dc88e2a02421549e5c98; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < fd69af06101090eaa60b3d216ae715f9c0a58e5b; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 76602d8e13864524382b0687dc32cd8f19164d5a; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 55baecb9eb90238f60a8350660d6762046ebd3bd; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 4b8e18af7bea92f8b7fb92d40aeae729209db250; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < cd7ff61bfffd7000143c42bbffb85eeb792466d6; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < ae8f160e7eb24240a2a79fc4c815c6a0d4ee16cc; Linux 2.6.12.
Is there a fix for CVE-2025-38465?
Yes. Fixed in Linux 9da025150b7c14a8390fc06aea314c0a4011e82c, Linux 76602d8e13864524382b0687dc32cd8f19164d5a, Linux 55baecb9eb90238f60a8350660d6762046ebd3bd, Linux 4b8e18af7bea92f8b7fb92d40aeae729209db250. No fix listed yet: follow the vendor advisory.
How do I check if I'm affected by CVE-2025-38465?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.