# CVE-2025-38112: net: Fix TOCTOU issue in sk_is_readable()

- Severity: Medium 4.7 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.20%, higher than 6% of CVEs (2026-11-30)
- Published: 2025-07-03T08:35:21.276Z
- Modified: 2026-11-05T21:18:10.200Z
- Weaknesses: CWE-367
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## 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.

(As written by CVE List.)

## Affected

- Linux Linux: from 8934ce2fd08171e8605f7fada91ee7619fe17ab8 before c2b26638476baee154920bb587fc94ff1bf04336; from 8934ce2fd08171e8605f7fada91ee7619fe17ab8 before 6fa68d7eab34d448a61aa24ea31e68b3231ed20d; from 8934ce2fd08171e8605f7fada91ee7619fe17ab8 before 8926a7ef1977a832dd6bf702f1a99303dbf15b15; from 8934ce2fd08171e8605f7fada91ee7619fe17ab8 before ff55c85a923e043d59d26b20a673a1b4a219c310; from 8934ce2fd08171e8605f7fada91ee7619fe17ab8 before 1e0de7582ceccbdbb227d4e0ddf65732f92526da; from 8934ce2fd08171e8605f7fada91ee7619fe17ab8 before 1b367ba2f94251822577daed031d6b9a9e11ba91; from 8934ce2fd08171e8605f7fada91ee7619fe17ab8 before 2660a544fdc0940bba15f70508a46cf9a6491230; 4.17 (not affected: before 4.17; from 5.10.239 up to 5.10.*; from 5.15.186 up to 5.15.*; from 6.1.142 up to 6.1.*; from 6.6.94 up to 6.6.*; from 6.12.34 up to 6.12.*; from 6.15.3 up to 6.15.*; from 6.16 up to *)
- linux linux_kernel: from 4.17 before 5.10.239; from 5.11 before 5.15.186; from 5.16 before 6.1.142; from 6.2 before 6.6.94; from 6.7 before 6.12.34; from 6.13 before 6.15.3; 6.16
- debian debian_linux: 11.0

## References

- <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> (patch)
- <https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html> (third-party-advisory)
- <https://lists.debian.org/debian-lts-announce/2025/10/msg00007.html> (third-party-advisory)

## Sources

- CVE List: [CVE-2025-38112](https://www.cve.org/CVERecord?id=CVE-2025-38112), CVE Terms of Use, modified 2026-11-05
- NVD: [CVE-2025-38112](https://nvd.nist.gov/vuln/detail/CVE-2025-38112), Public domain, modified 2026-11-05

---

Page: https://cve.day/CVE-2025-38112 · Whole record: https://cve.day/CVE-2025-38112.json · Rebuilt by cve.day 2026-11-25T22:59:00.515Z
