{"id":"CVE-2025-38112","aliases":["CVE-2025-38112"],"related":[],"kind":"vulnerability","state":"published","title":"net: Fix TOCTOU issue in sk_is_readable()","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: net: Se solucionó el problema de TOCTOU en sk_is_readable(). sk-&gt;sk_prot-&gt;sock_is_readable es un puntero a función válido cuando sk reside en un mapa de sockets. Tras el último sk_psock_put() (que suele ocurrir al eliminar un socket de un mapa de sockets), sk-&gt;sk_prot se restaura y sk-&gt;sk_prot-&gt;sock_is_readable se convierte en NULL. Esto hace que sk_is_readable() sea arriesgado si el valor de sk-&gt;sk_prot se recarga después de la comprobación inicial. Esto, a su vez, puede provocar una desreferencia de puntero nulo. Asegúrese de que el puntero a función no se convierta en NULL después de la comprobación.","source":"nvd"}],"published":"2025-07-03T08:35:21.276Z","modified":"2026-11-05T21:18:10.200Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H","score":4.7,"rating":"MEDIUM"},"severities":[{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H","score":4.7,"rating":"MEDIUM"}],"cwes":["CWE-367"],"affected":[{"ranges":[{"type":"git","introduced":"8934ce2fd08171e8605f7fada91ee7619fe17ab8","fixed":"c2b26638476baee154920bb587fc94ff1bf04336","status":"affected"},{"type":"git","introduced":"8934ce2fd08171e8605f7fada91ee7619fe17ab8","fixed":"6fa68d7eab34d448a61aa24ea31e68b3231ed20d","status":"affected"},{"type":"git","introduced":"8934ce2fd08171e8605f7fada91ee7619fe17ab8","fixed":"8926a7ef1977a832dd6bf702f1a99303dbf15b15","status":"affected"},{"type":"git","introduced":"8934ce2fd08171e8605f7fada91ee7619fe17ab8","fixed":"ff55c85a923e043d59d26b20a673a1b4a219c310","status":"affected"},{"type":"git","introduced":"8934ce2fd08171e8605f7fada91ee7619fe17ab8","fixed":"1e0de7582ceccbdbb227d4e0ddf65732f92526da","status":"affected"},{"type":"git","introduced":"8934ce2fd08171e8605f7fada91ee7619fe17ab8","fixed":"1b367ba2f94251822577daed031d6b9a9e11ba91","status":"affected"},{"type":"git","introduced":"8934ce2fd08171e8605f7fada91ee7619fe17ab8","fixed":"2660a544fdc0940bba15f70508a46cf9a6491230","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"4.17","status":"affected"},{"type":"semver","introduced":"0","fixed":"4.17","status":"unaffected"},{"type":"semver","introduced":"5.10.239","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.186","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.142","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.94","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.34","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.15.3","lastAffected":"6.15.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.16","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"4.17","fixed":"5.10.239"},{"status":"affected","introduced":"5.11","fixed":"5.15.186"},{"status":"affected","introduced":"5.16","fixed":"6.1.142"},{"status":"affected","introduced":"6.2","fixed":"6.6.94"},{"status":"affected","introduced":"6.7","fixed":"6.12.34"},{"status":"affected","introduced":"6.13","fixed":"6.15.3"},{"status":"affected","version":"6.16"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"11.0"}],"vendor":"debian","product":"debian_linux","cpe":"cpe:2.3:o:debian:debian_linux:11.0:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/c2b26638476baee154920bb587fc94ff1bf04336","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/6fa68d7eab34d448a61aa24ea31e68b3231ed20d","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/8926a7ef1977a832dd6bf702f1a99303dbf15b15","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/ff55c85a923e043d59d26b20a673a1b4a219c310","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/1e0de7582ceccbdbb227d4e0ddf65732f92526da","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/1b367ba2f94251822577daed031d6b9a9e11ba91","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/2660a544fdc0940bba15f70508a46cf9a6491230","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html","tags":["third-party-advisory"],"sources":["cvelist","nvd"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/10/msg00007.html","tags":["third-party-advisory"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-11-05T20:49:48.418Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-38112","url":"https://www.cve.org/CVERecord?id=CVE-2025-38112","licence":"CVE Terms of Use","modified":"2026-11-05T20:52:16.103Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-38112","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-38112","licence":"Public domain","modified":"2026-11-05T21:18:10.200Z"}],"updatedAt":"2026-11-25T22:59:00.515Z","epss":{"score":0.00202,"percentile":0.05724,"date":"2026-11-30T12:00:22.000Z"}}