CVE-2025-38465

netlink: Fix wraparounds of sk->sk_rmem_alloc.

MEDIUM
5.5
CVSS Score
Published: July 25, 2025 at 03:27 PM UTC
Updated: October 15, 2026 at 01:07 AM UTC
5 products affected across 3 vendorsLinux KernelDebian LinuxSIMATIC S7-1500 CPU 1518-4 Pn /dp MFP Firmware

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM5.5
Exploit prediction
EPSS 0.2%

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

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

2.6.12 ≤ v < 5.10.2402.6.12 ≤ v < 5.15.1892.6.12 ≤ v < 5.4.2962.6.12 ≤ v < 6.1.1462.6.12 ≤ v < 6.12.392.6.12 ≤ v < 6.15.72.6.12 ≤ v < 6.162.6.12 ≤ v < 6.6.992.6.13 ≤ v < 5.4.2965.11 ≤ v < 5.15.1895.16 ≤ v < 6.1.1465.5 ≤ v < 5.10.2406.13 ≤ v < 6.15.76.2 ≤ v < 6.6.996.7 ≤ v < 6.12.391da177e4c3f41524e886b7f1b8a0c1fc7321cac22.6.122.6.12 rc22.6.12 rc32.6.12 rc42.6.12 rc56.16 rc16.16 rc26.16 rc36.16 rc46.16 rc5
Vendor states this is fixed in 4b8e18af7bea92f8b7fb92d40aeae729209db250 (fixed)
Vendor states this is fixed in 55baecb9eb90238f60a8350660d6762046ebd3bd (fixed)
Vendor states this is fixed in 76602d8e13864524382b0687dc32cd8f19164d5a (fixed)
Vendor states this is fixed in 9da025150b7c14a8390fc06aea314c0a4011e82c (fixed)
Vendor states this is fixed in ae8f160e7eb24240a2a79fc4c815c6a0d4ee16cc (fixed)
Vendor states this is fixed in c4ceaac5c5ba0b992ee1dc88e2a02421549e5c98 (fixed)
Vendor states this is fixed in cd7ff61bfffd7000143c42bbffb85eeb792466d6 (fixed)
Vendor states this is fixed in fd69af06101090eaa60b3d216ae715f9c0a58e5b (fixed)
Vendor states this is fixed in 2.6.12 (unaffected)
Vendor states this is fixed in 5.10.240 (unaffected)
Vendor states this is fixed in 5.15.189 (unaffected)
Vendor states this is fixed in 5.4.296 (unaffected)
Vendor states this is fixed in 6.1.146 (unaffected)
Vendor states this is fixed in 6.12.39 (unaffected)
Vendor states this is fixed in 6.15.7 (unaffected)
Vendor states this is fixed in 6.16 (unaffected)
Vendor states this is fixed in 6.6.99 (unaffected)

References (11)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/4b8e18af7bea92f8b7fb92d40aeae729209db250
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/55baecb9eb90238f60a8350660d6762046ebd3bd
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/76602d8e13864524382b0687dc32cd8f19164d5a
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/9da025150b7c14a8390fc06aea314c0a4011e82c
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/ae8f160e7eb24240a2a79fc4c815c6a0d4ee16cc
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/c4ceaac5c5ba0b992ee1dc88e2a02421549e5c98
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/cd7ff61bfffd7000143c42bbffb85eeb792466d6
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/fd69af06101090eaa60b3d216ae715f9c0a58e5b

CVSS

Attack Vector
LOCAL
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
Vector?

Quick Info

StatusMODIFIED
CWE
CWE-401

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card