{"id":"CVE-2024-56558","aliases":["CVE-2024-56558"],"related":[],"kind":"vulnerability","state":"published","title":"nfsd: make sure exp active before svc_export_show","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nnfsd: make sure exp active before svc_export_show\n\nThe function `e_show` was called with protection from RCU. This only\nensures that `exp` will not be freed. Therefore, the reference count for\n`exp` can drop to zero, which will trigger a refcount use-after-free\nwarning when `exp_get` is called. To resolve this issue, use\n`cache_get_rcu` to ensure that `exp` remains active.\n\n------------[ cut here ]------------\nrefcount_t: addition on 0; use-after-free.\nWARNING: CPU: 3 PID: 819 at lib/refcount.c:25\nrefcount_warn_saturate+0xb1/0x120\nCPU: 3 UID: 0 PID: 819 Comm: cat Not tainted 6.12.0-rc3+ #1\nHardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS\n1.16.1-2.fc37 04/01/2014\nRIP: 0010:refcount_warn_saturate+0xb1/0x120\n...\nCall Trace:\n <TASK>\n e_show+0x20b/0x230 [nfsd]\n seq_read_iter+0x589/0x770\n seq_read+0x1e5/0x270\n vfs_read+0x125/0x530\n ksys_read+0xc1/0x160\n do_syscall_64+0x5f/0x170\n entry_SYSCALL_64_after_hwframe+0x76/0x7e","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nnfsd: make sure exp active before svc_export_show\n\nThe function `e_show` was called with protection from RCU. This only\nensures that `exp` will not be freed. Therefore, the reference count for\n`exp` can drop to zero, which will trigger a refcount use-after-free\nwarning when `exp_get` is called. To resolve this issue, use\n`cache_get_rcu` to ensure that `exp` remains active.\n\n------------[ cut here ]------------\nrefcount_t: addition on 0; use-after-free.\nWARNING: CPU: 3 PID: 819 at lib/refcount.c:25\nrefcount_warn_saturate+0xb1/0x120\nCPU: 3 UID: 0 PID: 819 Comm: cat Not tainted 6.12.0-rc3+ #1\nHardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS\n1.16.1-2.fc37 04/01/2014\nRIP: 0010:refcount_warn_saturate+0xb1/0x120\n...\nCall Trace:\n <TASK>\n e_show+0x20b/0x230 [nfsd]\n seq_read_iter+0x589/0x770\n seq_read+0x1e5/0x270\n vfs_read+0x125/0x530\n ksys_read+0xc1/0x160\n do_syscall_64+0x5f/0x170\n entry_SYSCALL_64_after_hwframe+0x76/0x7e","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: nfsd: asegúrese de que exp esté activo antes de svc_export_show La función `e_show` se llamó con protección de RCU. Esto solo garantiza que `exp` no se liberará. Por lo tanto, el recuento de referencia para `exp` puede caer a cero, lo que activará una advertencia de use-after-free de refcount cuando se llame a `exp_get`. Para resolver este problema, use `cache_get_rcu` para asegurarse de que `exp` permanezca activo. ------------[ cortar aquí ]------------ refcount_t: adición en 0; use-after-free. ADVERTENCIA: CPU: 3 PID: 819 en lib/refcount.c:25 refcount_warn_saturate+0xb1/0x120 CPU: 3 UID: 0 PID: 819 Comm: cat No contaminado 6.12.0-rc3+ #1 Nombre del hardware: PC estándar QEMU (i440FX + PIIX, 1996), BIOS 1.16.1-2.fc37 01/04/2014 RIP: 0010:refcount_warn_saturate+0xb1/0x120 ... Seguimiento de llamadas:  e_show+0x20b/0x230 [nfsd] seq_read_iter+0x589/0x770 seq_read+0x1e5/0x270 vfs_read+0x125/0x530 ksys_read+0xc1/0x160 hacer_syscall_64+0x5f/0x170 entrada_SYSCALL_64_después_hwframe+0x76/0x7e","source":"nvd"}],"published":"2024-12-27T14:23:03.902Z","modified":"2026-08-05T11:45:06.425Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"}],"cwes":["CWE-416"],"affected":[{"ranges":[{"type":"git","introduced":"bf18f163e89c52e09c96534db45c4274273a0b34","fixed":"e2fa0d0e327279a8defb87b263cd0bf288fd9261","status":"affected"},{"type":"git","introduced":"bf18f163e89c52e09c96534db45c4274273a0b34","fixed":"7fd29d284b55c2274f7a748e6c5f25b4758b8da5","status":"affected"},{"type":"git","introduced":"bf18f163e89c52e09c96534db45c4274273a0b34","fixed":"6cefcadd34e3c71c81ea64b899a0daa86314a51a","status":"affected"},{"type":"git","introduced":"bf18f163e89c52e09c96534db45c4274273a0b34","fixed":"7d8f7816bebcd2e7400bb4d786eccb8f33c9f9ec","status":"affected"},{"type":"git","introduced":"bf18f163e89c52e09c96534db45c4274273a0b34","fixed":"1cecfdbc6bfc89c516d286884c7f29267b95de2b","status":"affected"},{"type":"git","introduced":"bf18f163e89c52e09c96534db45c4274273a0b34","fixed":"7365d1f8de63cffdbbaa2287ce0205438e1a922f","status":"affected"},{"type":"git","introduced":"bf18f163e89c52e09c96534db45c4274273a0b34","fixed":"be8f982c369c965faffa198b46060f8853e0f1f0","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"3.17","status":"affected"},{"type":"semver","introduced":"0","fixed":"3.17","status":"unaffected"},{"type":"semver","introduced":"5.4.287","lastAffected":"5.4.*","status":"unaffected"},{"type":"semver","introduced":"5.10.231","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.174","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.120","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.64","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.4","lastAffected":"6.12.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.13","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":"3.17","fixed":"5.4.287"},{"status":"affected","introduced":"5.5","fixed":"5.10.231"},{"status":"affected","introduced":"5.11","fixed":"5.15.174"},{"status":"affected","introduced":"5.16","fixed":"6.1.120"},{"status":"affected","introduced":"6.2","fixed":"6.6.64"},{"status":"affected","introduced":"6.7","fixed":"6.12.4"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/e2fa0d0e327279a8defb87b263cd0bf288fd9261","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/7fd29d284b55c2274f7a748e6c5f25b4758b8da5","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/6cefcadd34e3c71c81ea64b899a0daa86314a51a","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/7d8f7816bebcd2e7400bb4d786eccb8f33c9f9ec","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/1cecfdbc6bfc89c516d286884c7f29267b95de2b","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/7365d1f8de63cffdbbaa2287ce0205438e1a922f","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/be8f982c369c965faffa198b46060f8853e0f1f0","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/03/msg00001.html","tags":[],"sources":["cvelist","nvd"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/03/msg00002.html","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2025-02-11T15:42:49.247Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-56558","url":"https://www.cve.org/CVERecord?id=CVE-2024-56558","licence":"CVE Terms of Use","modified":"2026-08-05T11:45:06.425Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-56558","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-56558","licence":"Public domain","modified":"2026-06-17T08:12:23.337Z"}],"updatedAt":"2026-11-25T22:58:50.450Z","epss":{"score":0.00243,"percentile":0.16634,"date":"2026-12-01T12:00:22.000Z"}}