# CVE-2025-38465: netlink: Fix wraparounds of sk-\>sk\_rmem\_alloc.

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **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
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.29% (percentile 14, 2026-11-26)
- **CWE:** CWE-401
- **Published:** 2025-07-25T15:27:47.510Z
- **Modified:** 2026-11-05T21:18:33.010Z

## 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

## 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

- Linux: \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 9da025150b7c14a8390fc06aea314c0a4011e82c; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< c4ceaac5c5ba0b992ee1dc88e2a02421549e5c98; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< fd69af06101090eaa60b3d216ae715f9c0a58e5b; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 76602d8e13864524382b0687dc32cd8f19164d5a; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 55baecb9eb90238f60a8350660d6762046ebd3bd; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 4b8e18af7bea92f8b7fb92d40aeae729209db250; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< cd7ff61bfffd7000143c42bbffb85eeb792466d6; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< ae8f160e7eb24240a2a79fc4c815c6a0d4ee16cc (cvelist)
- Linux: 2.6.12 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
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.
```

## 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.

## References

- patch: <https://git.kernel.org/stable/c/9da025150b7c14a8390fc06aea314c0a4011e82c>
- patch: <https://git.kernel.org/stable/c/c4ceaac5c5ba0b992ee1dc88e2a02421549e5c98>
- patch: <https://git.kernel.org/stable/c/fd69af06101090eaa60b3d216ae715f9c0a58e5b>
- patch: <https://git.kernel.org/stable/c/76602d8e13864524382b0687dc32cd8f19164d5a>
- patch: <https://git.kernel.org/stable/c/55baecb9eb90238f60a8350660d6762046ebd3bd>
- patch: <https://git.kernel.org/stable/c/4b8e18af7bea92f8b7fb92d40aeae729209db250>
- patch: <https://git.kernel.org/stable/c/cd7ff61bfffd7000143c42bbffb85eeb792466d6>
- patch: <https://git.kernel.org/stable/c/ae8f160e7eb24240a2a79fc4c815c6a0d4ee16cc>
- other: <https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html>
- other: <https://lists.debian.org/debian-lts-announce/2025/10/msg00007.html>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-082556.html>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2025-38465>

HTML: <https://flawdb.com/CVE-2025-38465> · JSON: <https://flawdb.com/api/v1/entries/CVE-2025-38465>
