# CVE-2025-38112: net: Fix TOCTOU issue in sk\_is\_readable()

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

- **Severity:** MEDIUM 4.7
- **CVSS:** 4.7 (v3.1, NVD) `CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: High; 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.19% (percentile 5, 2026-11-26)
- **CWE:** CWE-367
- **Published:** 2025-07-03T08:35:21.276Z
- **Modified:** 2026-11-05T21:18:10.200Z

## Who should check

- Anyone running Linux \>= 8934ce2fd08171e8605f7fada91ee7619fe17ab8, \< c2b26638476baee154920bb587fc94ff1bf04336; \>= 8934ce2fd08171e8605f7fada91ee7619fe17ab8, \< 6fa68d7eab34d448a61aa24ea31e68b3231ed20d; \>= 8934ce2fd08171e8605f7fada91ee7619fe17ab8, \< 8926a7ef1977a832dd6bf702f1a99303dbf15b15; \>= 8934ce2fd08171e8605f7fada91ee7619fe17ab8, \< ff55c85a923e043d59d26b20a673a1b4a219c310; \>= 8934ce2fd08171e8605f7fada91ee7619fe17ab8, \< 1e0de7582ceccbdbb227d4e0ddf65732f92526da; \>= 8934ce2fd08171e8605f7fada91ee7619fe17ab8, \< 1b367ba2f94251822577daed031d6b9a9e11ba91; \>= 8934ce2fd08171e8605f7fada91ee7619fe17ab8, \< 2660a544fdc0940bba15f70508a46cf9a6491230
- Anyone running Linux 4.17

## 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 and fixed versions

- Linux: \>= 8934ce2fd08171e8605f7fada91ee7619fe17ab8, \< c2b26638476baee154920bb587fc94ff1bf04336; \>= 8934ce2fd08171e8605f7fada91ee7619fe17ab8, \< 6fa68d7eab34d448a61aa24ea31e68b3231ed20d; \>= 8934ce2fd08171e8605f7fada91ee7619fe17ab8, \< 8926a7ef1977a832dd6bf702f1a99303dbf15b15; \>= 8934ce2fd08171e8605f7fada91ee7619fe17ab8, \< ff55c85a923e043d59d26b20a673a1b4a219c310; \>= 8934ce2fd08171e8605f7fada91ee7619fe17ab8, \< 1e0de7582ceccbdbb227d4e0ddf65732f92526da; \>= 8934ce2fd08171e8605f7fada91ee7619fe17ab8, \< 1b367ba2f94251822577daed031d6b9a9e11ba91; \>= 8934ce2fd08171e8605f7fada91ee7619fe17ab8, \< 2660a544fdc0940bba15f70508a46cf9a6491230 (cvelist)
- Linux: 4.17 (cvelist)

## Mitigation

- Upgrade Linux to 2660a544fdc0940bba15f70508a46cf9a6491230 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2025-38112. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-38112.md
Affected: Linux >= 8934ce2fd08171e8605f7fada91ee7619fe17ab8, < c2b26638476baee154920bb587fc94ff1bf04336; >= 8934ce2fd08171e8605f7fada91ee7619fe17ab8, < 6fa68d7eab34d448a61aa24ea31e68b3231ed20d; >= 8934ce2fd08171e8605f7fada91ee7619fe17ab8, < 8926a7ef1977a832dd6bf702f1a99303dbf15b15; >= 8934ce2fd08171e8605f7fa…
Fixed in: Linux 6fa68d7eab34d448a61aa24ea31e68b3231ed20d, Linux 8926a7ef1977a832dd6bf702f1a99303dbf15b15, Linux 1e0de7582ceccbdbb227d4e0ddf65732f92526da, Linux 1b367ba2f94251822577daed031d6b9a9e11ba91, Linux 2660a544fdc0940bba15f70508a46cf9a6491230

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-38112 being exploited?

There is no confirmed exploitation: CVE-2025-38112 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.19% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2025-38112?

Medium: CVSS 4.7 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed). The attack needs conditions outside the attacker's control, which makes it harder.

### Which versions are affected by CVE-2025-38112?

Linux \>= 8934ce2fd08171e8605f7fada91ee7619fe17ab8, \< c2b26638476baee154920bb587fc94ff1bf04336; \>= 8934ce2fd08171e8605f7fada91ee7619fe17ab8, \< 6fa68d7eab34d448a61aa24ea31e68b3231ed20d; \>= 8934ce2fd08171e8605f7fada91ee7619fe17ab8, \< 8926a7ef1977a832dd6bf702f1a99303dbf15b15; \>= 8934ce2fd08171e8605f7fada91ee7619fe17ab8, \< ff55c85a923e043d59d26b20a673a1b4a219c310; \>= 8934ce2fd08171e8605f7fada91ee7619fe17ab8, \< 1e0de7582ceccbdbb227d4e0ddf65732f92526da; \>= 8934ce2fd08171e8605f7fada91ee7619fe17ab8, \< 1b367ba2f94251822577daed031d6b9a9e11ba91; \>= 8934ce2fd08171e8605f7fada91ee7619fe17ab8, \< 2660a544fdc0940bba15f70508a46cf9a6491230; Linux 4.17.

### Is there a fix for CVE-2025-38112?

Yes. Fixed in Linux 6fa68d7eab34d448a61aa24ea31e68b3231ed20d, Linux 8926a7ef1977a832dd6bf702f1a99303dbf15b15, Linux 1e0de7582ceccbdbb227d4e0ddf65732f92526da, Linux 1b367ba2f94251822577daed031d6b9a9e11ba91, Linux 2660a544fdc0940bba15f70508a46cf9a6491230. Upgrade Linux to 2660a544fdc0940bba15f70508a46cf9a6491230 or later.

### How do I check if I'm affected by CVE-2025-38112?

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/c2b26638476baee154920bb587fc94ff1bf04336>
- patch: <https://git.kernel.org/stable/c/6fa68d7eab34d448a61aa24ea31e68b3231ed20d>
- patch: <https://git.kernel.org/stable/c/8926a7ef1977a832dd6bf702f1a99303dbf15b15>
- patch: <https://git.kernel.org/stable/c/ff55c85a923e043d59d26b20a673a1b4a219c310>
- patch: <https://git.kernel.org/stable/c/1e0de7582ceccbdbb227d4e0ddf65732f92526da>
- patch: <https://git.kernel.org/stable/c/1b367ba2f94251822577daed031d6b9a9e11ba91>
- patch: <https://git.kernel.org/stable/c/2660a544fdc0940bba15f70508a46cf9a6491230>
- other: <https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html>
- other: <https://lists.debian.org/debian-lts-announce/2025/10/msg00007.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-38112>

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