CVE-2025-38112

net: Fix TOCTOU issue in sk_is_readable()

MEDIUM
4.7
CVSS Score
Published: July 3, 2025 at 08:35 AM UTC
Updated: June 17, 2026 at 09:16 AM UTC
2 products affected across 2 vendorsLinux KernelDebian Linux

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
MEDIUM4.7
Exploit prediction
EPSS 0.1%

Description

In the Linux kernel, the following vulnerability has been resolved: net: Fix TOCTOU issue in sk_is_readable() sk->sk_prot->sock_is_readable is a valid function pointer when sk resides in a sockmap. After the last sk_psock_put() (which usually happens when socket is removed from sockmap), sk->sk_prot gets restored and sk->sk_prot->sock_is_readable becomes NULL. This makes sk_is_readable() racy, if the value of sk->sk_prot is reloaded after the initial check. Which in turn may lead to a null pointer dereference. Ensure the function pointer does not turn NULL after the check.

Affected

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

4.17 ≤ v < 5.10.2394.17 ≤ v < 5.15.1864.17 ≤ v < 6.1.1424.17 ≤ v < 6.12.344.17 ≤ v < 6.15.34.17 ≤ v < 6.164.17 ≤ v < 6.6.945.11 ≤ v < 5.15.1865.16 ≤ v < 6.1.1426.13 ≤ v < 6.15.36.2 ≤ v < 6.6.946.7 ≤ v < 6.12.344.176.16 rc18934ce2fd08171e8605f7fada91ee7619fe17ab8
Vendor states this is fixed in 1b367ba2f94251822577daed031d6b9a9e11ba91 (fixed)
Vendor states this is fixed in 1e0de7582ceccbdbb227d4e0ddf65732f92526da (fixed)
Vendor states this is fixed in 2660a544fdc0940bba15f70508a46cf9a6491230 (fixed)
Vendor states this is fixed in 6fa68d7eab34d448a61aa24ea31e68b3231ed20d (fixed)
Vendor states this is fixed in 8926a7ef1977a832dd6bf702f1a99303dbf15b15 (fixed)
Vendor states this is fixed in c2b26638476baee154920bb587fc94ff1bf04336 (fixed)
Vendor states this is fixed in ff55c85a923e043d59d26b20a673a1b4a219c310 (fixed)
Vendor states this is fixed in 4.17 (unaffected)
Vendor states this is fixed in 5.10.239 (unaffected)
Vendor states this is fixed in 5.15.186 (unaffected)
Vendor states this is fixed in 6.1.142 (unaffected)
Vendor states this is fixed in 6.12.34 (unaffected)
Vendor states this is fixed in 6.15.3 (unaffected)
Vendor states this is fixed in 6.16 (unaffected)
Vendor states this is fixed in 6.6.94 (unaffected)

References (9)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/1b367ba2f94251822577daed031d6b9a9e11ba91
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/1e0de7582ceccbdbb227d4e0ddf65732f92526da
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/2660a544fdc0940bba15f70508a46cf9a6491230
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/6fa68d7eab34d448a61aa24ea31e68b3231ed20d
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/8926a7ef1977a832dd6bf702f1a99303dbf15b15
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/c2b26638476baee154920bb587fc94ff1bf04336
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/ff55c85a923e043d59d26b20a673a1b4a219c310
Third Party Advisory
Source: af854a3a-2127-422b-91ae-364da2661108
https://lists.debian.org/debian-lts-announce/2025/10/msg00007.html

CVSS

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

Quick Info

StatusANALYZED
CWE
CWE-367

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