{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2025-38112","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","state":"PUBLISHED","assignerShortName":"Linux","dateReserved":"2025-04-16T04:51:23.985Z","datePublished":"2025-07-03T08:35:21.276Z","dateUpdated":"2026-05-11T21:21:29.520Z"},"containers":{"cna":{"providerMetadata":{"orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux","dateUpdated":"2026-05-11T21:21:29.520Z"},"descriptions":[{"lang":"en","value":"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."}],"affected":[{"product":"Linux","vendor":"Linux","defaultStatus":"unaffected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["include/net/sock.h"],"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"}]},{"product":"Linux","vendor":"Linux","defaultStatus":"affected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["include/net/sock.h"],"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"}]}],"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.17","versionEndExcluding":"5.10.239"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.17","versionEndExcluding":"5.15.186"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.17","versionEndExcluding":"6.1.142"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.17","versionEndExcluding":"6.6.94"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.17","versionEndExcluding":"6.12.34"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.17","versionEndExcluding":"6.15.3"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.17","versionEndExcluding":"6.16"}]}]}],"references":[{"url":"https://git.kernel.org/stable/c/c2b26638476baee154920bb587fc94ff1bf04336"},{"url":"https://git.kernel.org/stable/c/6fa68d7eab34d448a61aa24ea31e68b3231ed20d"},{"url":"https://git.kernel.org/stable/c/8926a7ef1977a832dd6bf702f1a99303dbf15b15"},{"url":"https://git.kernel.org/stable/c/ff55c85a923e043d59d26b20a673a1b4a219c310"},{"url":"https://git.kernel.org/stable/c/1e0de7582ceccbdbb227d4e0ddf65732f92526da"},{"url":"https://git.kernel.org/stable/c/1b367ba2f94251822577daed031d6b9a9e11ba91"},{"url":"https://git.kernel.org/stable/c/2660a544fdc0940bba15f70508a46cf9a6491230"}],"title":"net: Fix TOCTOU issue in sk_is_readable()","x_generator":{"engine":"bippy-1.2.0"}},"adp":[{"title":"CVE Program Container","references":[{"url":"https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html"},{"url":"https://lists.debian.org/debian-lts-announce/2025/10/msg00007.html"}],"providerMetadata":{"orgId":"af854a3a-2127-422b-91ae-364da2661108","shortName":"CVE","dateUpdated":"2025-11-03T17:34:15.443Z"}}]}}