Skip to content
FlawDB
Sign in
Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

CVE-2025-38112

MEDIUM 4.7EPSS 5%

net: Fix TOCTOU issue in sk_is_readable()

Mitigation

  • Upgrade Linux to 2660a544fdc0940bba15f70508a46cf9a6491230 or later.

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

Vulnerability facts

Affected
Linux >= 8934ce2fd08171e8605f7fada91ee7619fe17ab8, < c2b26638476baee154920bb587fc94ff1bf04336; >= 8934ce2fd08171e8605f7fada91ee7619fe17ab8, < 6fa68d7eab34d448a61aa24ea31e68b3231ed20d; >= 8934ce2fd08171e8605f7fada91ee7619fe17ab8, < 8926a7ef1977a832dd6bf702f1a99303dbf15b15; >= 8934ce2fd08171e8605f7fada91ee7619fe17ab8, < ff55c85a923e043d59d26b20a673a1b4a219c310; >= 8934ce2fd08171e8605f7fada91ee7619fe17ab8, < 1e0de7582ceccbdbb227d4e0ddf65732f92526da; >= 8934ce2fd08171e8605f7fada91ee7619fe17ab8, < 1b367ba2f94251822577daed031d6b9a9e11ba91; >= 8934ce2fd08171e8605f7fada91ee7619fe17ab8, < 2660a544fdc0940bba15f70508a46cf9a6491230; Linux 4.17
Fixed in
Linux 6fa68d7eab34d448a61aa24ea31e68b3231ed20d, Linux 8926a7ef1977a832dd6bf702f1a99303dbf15b15, Linux 1e0de7582ceccbdbb227d4e0ddf65732f92526da, Linux 1b367ba2f94251822577daed031d6b9a9e11ba91, Linux 2660a544fdc0940bba15f70508a46cf9a6491230
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
None known
Remote exploitation
Not remotely exploitable (local or adjacent access needed)
CVSS
4.7 (v3.1, NVD)CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:HOpen in CVSS calculator
Show all 8 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
EPSS
0.19% chance of exploitation in 30 days (percentile 5, 2026-11-26)
CWE
CWE-367
Published
Modified

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

Package / productAffectedFixedSource
Linux>= 8934ce2fd08171e8605f7fada91ee7619fe17ab8, < c2b26638476baee154920bb587fc94ff1bf04336; >= 8934ce2fd08171e8605f7fada91ee7619fe17ab8, < 6fa68d7eab34d448a61aa24ea31e68b3231ed20d; >= 8934ce2fd08171e8605f7fada91ee7619fe17ab8, < 8926a7ef1977a832dd6bf702f1a99303dbf15b15; >= 8934ce2fd08171e8605f7fada91ee7619fe17ab8, < ff55c85a923e043d59d26b20a673a1b4a219c310; >= 8934ce2fd08171e8605f7fada91ee7619fe17ab8, < 1e0de7582ceccbdbb227d4e0ddf65732f92526da; >= 8934ce2fd08171e8605f7fada91ee7619fe17ab8, < 1b367ba2f94251822577daed031d6b9a9e11ba91; >= 8934ce2fd08171e8605f7fada91ee7619fe17ab8, < 2660a544fdc0940bba15f70508a46cf9a6491230—cvelist
Linux4.17—cvelist

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

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.

References

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.

Sponsors