{"id":"CVE-2025-38112","summary":"net: Fix TOCTOU issue in sk_is_readable()","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet: Fix TOCTOU issue in sk_is_readable()\n\nsk-\u003esk_prot-\u003esock_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-\u003esk_prot gets restored and\nsk-\u003esk_prot-\u003esock_is_readable becomes NULL.\n\nThis makes sk_is_readable() racy, if the value of sk-\u003esk_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.","modified":"2026-04-16T04:39:11.629582757Z","published":"2025-07-03T08:35:21.276Z","related":["SUSE-SU-2025:02846-1","SUSE-SU-2025:02853-1","SUSE-SU-2025:02923-1","SUSE-SU-2025:02969-1","SUSE-SU-2025:02996-1","SUSE-SU-2025:02997-1","SUSE-SU-2025:03011-1","SUSE-SU-2025:03023-1","SUSE-SU-2025:20577-1","SUSE-SU-2025:20586-1","SUSE-SU-2025:20601-1","SUSE-SU-2025:20602-1","SUSE-SU-2025:21074-1","SUSE-SU-2025:21139-1","SUSE-SU-2025:21179-1","openSUSE-SU-2025:20081-1"],"database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/38xxx/CVE-2025-38112.json"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/1b367ba2f94251822577daed031d6b9a9e11ba91"},{"type":"WEB","url":"https://git.kernel.org/stable/c/1e0de7582ceccbdbb227d4e0ddf65732f92526da"},{"type":"WEB","url":"https://git.kernel.org/stable/c/2660a544fdc0940bba15f70508a46cf9a6491230"},{"type":"WEB","url":"https://git.kernel.org/stable/c/6fa68d7eab34d448a61aa24ea31e68b3231ed20d"},{"type":"WEB","url":"https://git.kernel.org/stable/c/8926a7ef1977a832dd6bf702f1a99303dbf15b15"},{"type":"WEB","url":"https://git.kernel.org/stable/c/c2b26638476baee154920bb587fc94ff1bf04336"},{"type":"WEB","url":"https://git.kernel.org/stable/c/ff55c85a923e043d59d26b20a673a1b4a219c310"},{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2025/10/msg00007.html"},{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/38xxx/CVE-2025-38112.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-38112"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"8934ce2fd08171e8605f7fada91ee7619fe17ab8"},{"fixed":"c2b26638476baee154920bb587fc94ff1bf04336"},{"fixed":"6fa68d7eab34d448a61aa24ea31e68b3231ed20d"},{"fixed":"8926a7ef1977a832dd6bf702f1a99303dbf15b15"},{"fixed":"ff55c85a923e043d59d26b20a673a1b4a219c310"},{"fixed":"1e0de7582ceccbdbb227d4e0ddf65732f92526da"},{"fixed":"1b367ba2f94251822577daed031d6b9a9e11ba91"},{"fixed":"2660a544fdc0940bba15f70508a46cf9a6491230"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-38112.json"}}],"schema_version":"1.7.5"}