{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2021-47259","id":"CVE-2021-47259","title":"NFS: Fix use-after-free in nfs4_init_client()","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nNFS: Fix use-after-free in nfs4_init_client()\n\nKASAN reports a use-after-free when attempting to mount two different\nexports through two different NICs that belong to the same server.\n\nOlga was able to hit this with kernels starting somewhere between 5.7\nand 5.10, but I traced the patch that introduced the clear_bit() call to\n4.1","descriptionLong":"In the Linux kernel, the following vulnerability has been resolved:\n\nNFS: Fix use-after-free in nfs4_init_client()\n\nKASAN reports a use-after-free when attempting to mount two different\nexports through two different NICs that belong to the same server.\n\nOlga was able to hit this with kernels starting somewhere between 5.7\nand 5.10, but I traced the patch that introduced the clear_bit() call to\n4.13. So something must have changed in the refcounting of the clp\npointer to make this call to nfs_put_client() the very last one.","published":"2024-05-21T14:19:52.738Z","updated":"2026-08-05T08:47:00.677Z","reserved":"2024-05-21T13:27:52.125Z","status":"Modified","rejected":false,"assigner":"Linux","metric":{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"Linux"},"metrics":[{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"Linux"},{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"CISA-ADP"},{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"OSV"}],"rating":"high","products":["Linux"],"affectedProducts":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"8dcbec6d20eb881ba368d0aebc3a8a678aebb1da","lessThan":"c7eab9e2d7b4e983ce280276fb920af649955897","status":"affected","versionType":"git"},{"version":"8dcbec6d20eb881ba368d0aebc3a8a678aebb1da","lessThan":"42c10b0db064e45f5c5ae7019bbf2168ffab766c","status":"affected","versionType":"git"},{"version":"8dcbec6d20eb881ba368d0aebc3a8a678aebb1da","lessThan":"3e3c7ebbfac152d08be75c92802a64a1f6471a15","status":"affected","versionType":"git"},{"version":"8dcbec6d20eb881ba368d0aebc3a8a678aebb1da","lessThan":"c3b6cf64dfe4ef96e7341508d50d6998da7062c7","status":"affected","versionType":"git"},{"version":"8dcbec6d20eb881ba368d0aebc3a8a678aebb1da","lessThan":"72651c6579a25317a90536181d311c663d0329ab","status":"affected","versionType":"git"},{"version":"8dcbec6d20eb881ba368d0aebc3a8a678aebb1da","lessThan":"476bdb04c501fc64bf3b8464ffddefc8dbe01577","status":"affected","versionType":"git"}],"platforms":[]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"4.13","status":"affected"},{"version":"0","lessThan":"4.13","status":"unaffected","versionType":"semver"},{"version":"4.14.237","lessThanOrEqual":"4.14.*","status":"unaffected","versionType":"semver"},{"version":"4.19.195","lessThanOrEqual":"4.19.*","status":"unaffected","versionType":"semver"},{"version":"5.4.126","lessThanOrEqual":"5.4.*","status":"unaffected","versionType":"semver"},{"version":"5.10.44","lessThanOrEqual":"5.10.*","status":"unaffected","versionType":"semver"},{"version":"5.12.11","lessThanOrEqual":"5.12.*","status":"unaffected","versionType":"semver"},{"version":"5.13","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}],"platforms":[]}],"packages":[],"cwes":["CWE-416"],"aliases":[],"references":[{"url":"https://git.kernel.org/stable/c/c7eab9e2d7b4e983ce280276fb920af649955897","tags":["x_transferred","Patch","fix"]},{"url":"https://git.kernel.org/stable/c/42c10b0db064e45f5c5ae7019bbf2168ffab766c","tags":["x_transferred","Patch","fix"]},{"url":"https://git.kernel.org/stable/c/3e3c7ebbfac152d08be75c92802a64a1f6471a15","tags":["x_transferred","Patch","fix"]},{"url":"https://git.kernel.org/stable/c/c3b6cf64dfe4ef96e7341508d50d6998da7062c7","tags":["x_transferred","Patch","fix"]},{"url":"https://git.kernel.org/stable/c/72651c6579a25317a90536181d311c663d0329ab","tags":["x_transferred","Patch","fix"]},{"url":"https://git.kernel.org/stable/c/476bdb04c501fc64bf3b8464ffddefc8dbe01577","tags":["x_transferred","Patch","fix"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total"},"epss":0.00713,"epssPercentile":0.54392,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2021-47259","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-47259","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2021-47259","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-2021-47259","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}