{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2025-38112","id":"CVE-2025-38112","title":"net: Fix TOCTOU issue in sk_is_readable()","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet: Fix TOCTOU issue in sk_is_readable()\n\nsk->sk_prot->sock_is_readable is a valid function pointer when sk resides\nin a sockmap. After the last sk_psock_put() (which usually happens when\nsocket is removed from sockmap), sk->sk_prot gets restored and\nsk->sk_prot->sock_is_readable becomes NULL.\n\nThis makes sk_is_readable() racy, ","descriptionLong":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet: Fix TOCTOU issue in sk_is_readable()\n\nsk->sk_prot->sock_is_readable is a valid function pointer when sk resides\nin a sockmap. After the last sk_psock_put() (which usually happens when\nsocket is removed from sockmap), sk->sk_prot gets restored and\nsk->sk_prot->sock_is_readable becomes NULL.\n\nThis makes sk_is_readable() racy, if the value of sk->sk_prot is reloaded\nafter the initial check. Which in turn may lead to a null pointer\ndereference.\n\nEnsure the function pointer does not turn NULL after the check.","published":"2025-07-03T08:35:21.276Z","updated":"2026-11-07T02:31:05.318980554Z","reserved":"2025-04-16T04:51:23.985Z","status":"Analyzed","rejected":false,"assigner":"Linux","metric":{"version":"3.1","score":4.7,"vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H","rating":"medium","source":"NVD"},"metrics":[{"version":"3.1","score":4.7,"vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H","rating":"medium","source":"NVD"}],"rating":"medium","products":["Linux"],"affectedProducts":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"8934ce2fd08171e8605f7fada91ee7619fe17ab8","lessThan":"c2b26638476baee154920bb587fc94ff1bf04336","status":"affected","versionType":"git"},{"version":"8934ce2fd08171e8605f7fada91ee7619fe17ab8","lessThan":"6fa68d7eab34d448a61aa24ea31e68b3231ed20d","status":"affected","versionType":"git"},{"version":"8934ce2fd08171e8605f7fada91ee7619fe17ab8","lessThan":"8926a7ef1977a832dd6bf702f1a99303dbf15b15","status":"affected","versionType":"git"},{"version":"8934ce2fd08171e8605f7fada91ee7619fe17ab8","lessThan":"ff55c85a923e043d59d26b20a673a1b4a219c310","status":"affected","versionType":"git"},{"version":"8934ce2fd08171e8605f7fada91ee7619fe17ab8","lessThan":"1e0de7582ceccbdbb227d4e0ddf65732f92526da","status":"affected","versionType":"git"},{"version":"8934ce2fd08171e8605f7fada91ee7619fe17ab8","lessThan":"1b367ba2f94251822577daed031d6b9a9e11ba91","status":"affected","versionType":"git"},{"version":"8934ce2fd08171e8605f7fada91ee7619fe17ab8","lessThan":"2660a544fdc0940bba15f70508a46cf9a6491230","status":"affected","versionType":"git"}],"platforms":[]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"4.17","status":"affected"},{"version":"0","lessThan":"4.17","status":"unaffected","versionType":"semver"},{"version":"5.10.239","lessThanOrEqual":"5.10.*","status":"unaffected","versionType":"semver"},{"version":"5.15.186","lessThanOrEqual":"5.15.*","status":"unaffected","versionType":"semver"},{"version":"6.1.142","lessThanOrEqual":"6.1.*","status":"unaffected","versionType":"semver"},{"version":"6.6.94","lessThanOrEqual":"6.6.*","status":"unaffected","versionType":"semver"},{"version":"6.12.34","lessThanOrEqual":"6.12.*","status":"unaffected","versionType":"semver"},{"version":"6.15.3","lessThanOrEqual":"6.15.*","status":"unaffected","versionType":"semver"},{"version":"6.16","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}],"platforms":[]}],"packages":[],"cwes":["CWE-367"],"aliases":[],"references":[{"url":"https://git.kernel.org/stable/c/c2b26638476baee154920bb587fc94ff1bf04336","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/6fa68d7eab34d448a61aa24ea31e68b3231ed20d","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/8926a7ef1977a832dd6bf702f1a99303dbf15b15","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/ff55c85a923e043d59d26b20a673a1b4a219c310","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/1e0de7582ceccbdbb227d4e0ddf65732f92526da","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/1b367ba2f94251822577daed031d6b9a9e11ba91","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/2660a544fdc0940bba15f70508a46cf9a6491230","tags":["Patch","web"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html","tags":["Third Party Advisory","web"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/10/msg00007.html","tags":["Third Party Advisory","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/38xxx/CVE-2025-38112.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-38112","tags":["advisory"]},{"url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial"},"epss":0.00153,"epssPercentile":0.04523,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2025-38112","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-38112","ok":true,"note":"Analyzed"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2025-38112","ok":true,"note":"0 packages"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2025-38112","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}