Vulnerabilities

CVE-2025-38112

Medium 4.7 CVSS 3.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.

Description as published by the source, in English.

Key facts

Published
2025-07-03
Last modified
2026-11-05
Assigned by
416baaa9-dc9f-4396-8d5f-8c081fb06d67
CVSS vector
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H
Scored by
nvd@nist.gov (NVD Primary)
Probability of exploitation
0.1 % higher than 2 % of all known vulnerabilities
EPSS, next 30 days, model v2026.06.15
Fix available
Yes, see references

Affected products

Vendor Product Versions Status
Debian Debian Linux 11.0 Affected
Linux Linux Kernel 6.16 Affected
Linux Linux Kernel ≥ 4.17, < 5.10.239 Affected
Linux Linux Kernel ≥ 5.11, < 5.15.186 Affected
Linux Linux Kernel ≥ 5.16, < 6.1.142 Affected
Linux Linux Kernel ≥ 6.13, < 6.15.3 Affected
Linux Linux Kernel ≥ 6.2, < 6.6.94 Affected
Linux Linux Kernel ≥ 6.7, < 6.12.34 Affected

Weakness type

References

Related at Berigo

Articles

Does this affect you?

A vulnerability matters only if you run the product, in an affected version, somewhere an attacker can reach.

Check your asset list Browse all vulnerabilities