CVE-2025-38465

netlink: Fix wraparounds of sk->sk_rmem_alloc.

No CVSS score yet EPSS 0.22%

Published 25 Jul 2025 Updated 5 Nov 2026 CNA: Linux

Check your servers for CVE-2025-38465

The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2025-38465 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.

Check my servers

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

Exploitation

EPSS 0.22%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 12.6% of all scored CVEs. Scores of 1 Dec 2026.

The assessment of CISA (SSVC, 5 Nov 2026):

Exploitation
none: CISA did not find evidence of exploitation or a public proof of concept
Automatable
no: each attack takes manual steps
Technical impact
partial: limited control or limited data

Affected products

As the CNA lists them.

ProductVersions
Linux
affected from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, before 9da025150b7c14a8390fc06aea314c0a4011e82c
affected from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, before c4ceaac5c5ba0b992ee1dc88e2a02421549e5c98
affected from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, before fd69af06101090eaa60b3d216ae715f9c0a58e5b
affected from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, before 76602d8e13864524382b0687dc32cd8f19164d5a
affected from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, before 55baecb9eb90238f60a8350660d6762046ebd3bd
affected from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, before 4b8e18af7bea92f8b7fb92d40aeae729209db250
affected from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, before cd7ff61bfffd7000143c42bbffb85eeb792466d6
affected from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, before ae8f160e7eb24240a2a79fc4c815c6a0d4ee16cc
Other versions: unaffected
Linux
affected 2.6.12
unaffected before 2.6.12
unaffected from 5.4.296 up to and including 5.4.*
unaffected from 5.10.240 up to and including 5.10.*
unaffected from 5.15.189 up to and including 5.15.*
unaffected from 6.1.146 up to and including 6.1.*
unaffected from 6.6.99 up to and including 6.6.*
unaffected from 6.12.39 up to and including 6.12.*
unaffected from 6.15.7 up to and including 6.15.*
unaffected 6.16 and later
Other versions: affected

Is my server affected?

This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:

uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2025-38465 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2025-38465

With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:

trivy rootfs --scanners vuln / | grep CVE-2025-38465
trivy image --scanners vuln IMAGE | grep CVE-2025-38465

Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.

References

Other references

Source: the record CVE-2025-38465 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.