CVE-2025-38112 Details
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.
A time-of-check to time-of-use (TOCTOU) vulnerability has been identified in the Linux kernel's handling of socket readability. The issue arises in the 'sk_is_readable()' function when a socket is part of a sockmap. After the 'sk_psock_put()' function is called—typically when the socket is removed from the sockmap—the 'sk->sk_prot' pointer is restored, but the 'sock_is_readable' function pointer becomes NULL. This creates a race condition, as 'sk_is_readable()' can be called with a NULL pointer, leading to a null pointer dereference. The vulnerability has been addressed by ensuring that the function pointer remains valid after the initial check.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Nov 5, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://git.kernel.org/stable/c/1b367ba2f94251822577daed031d6b9a9e11ba91 | kernel.org | Patch |
| https://git.kernel.org/stable/c/1e0de7582ceccbdbb227d4e0ddf65732f92526da | kernel.org | Patch |
| https://git.kernel.org/stable/c/2660a544fdc0940bba15f70508a46cf9a6491230 | kernel.org | Patch |
| https://git.kernel.org/stable/c/6fa68d7eab34d448a61aa24ea31e68b3231ed20d | kernel.org | Patch |
| https://git.kernel.org/stable/c/8926a7ef1977a832dd6bf702f1a99303dbf15b15 | kernel.org | Patch |
| https://git.kernel.org/stable/c/c2b26638476baee154920bb587fc94ff1bf04336 | kernel.org | Patch |
| https://git.kernel.org/stable/c/ff55c85a923e043d59d26b20a673a1b4a219c310 | kernel.org | Patch |
| https://lists.debian.org/debian-lts-announce/2025/10/msg00007.html | CVE | Third Party Advisory |
| https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html | CVE | Third Party Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-367 | Time-of-check Time-of-use (TOCTOU) Race Condition | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| linux linux kernel | >= 4.17, < 5.10.239 >= 5.11, < 5.15.186 >= 5.16, < 6.1.142 >= 6.2, < 6.6.94 >= 6.7, < 6.12.34 >= 6.13, < 6.15.3 6.16 rc1 |
CPE
Remediation
| |
| debian debian linux | 11.0 |
CPE
Remediation
| |
Change History
7 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Nov 5, 2026 | CVE Modified | CISA-ADP |
| Nov 5, 2026 | CVE Modified | CVE |
| Nov 5, 2026 | CVE Modified | kernel.org |
| Jun 17, 2026 | CVE Modified | kernel.org |
| Dec 17, 2025 | Initial Analysis | [email protected] |
| Nov 3, 2025 | CVE Modified | CVE |
| Jul 3, 2025 | New CVE Received | kernel.org |