{"id":"CVE-2021-46952","state":"PUBLISHED","title":"NFS: fs_context: validate UDP retrans to prevent shift out-of-bounds","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nNFS: fs_context: validate UDP retrans to prevent shift out-of-bounds\n\nFix shift out-of-bounds in xprt_calc_majortimeo(). This is caused\nby a garbage timeout (retrans) mount option being passed to nfs mount,\nin this case from syzkaller.\n\nIf the protocol is XPRT_TRANSPORT_UDP, then 'retrans' is a shift\nvalue for a 64-bit long integer, so 'retrans' cannot be >= 64.\nIf it is >= 64, fail the mount and return an error.","publishedAt":"2024-02-27T18:40:35.343Z","updatedAt":"2026-05-11T13:45:06.243Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"9954bf92c0cddd50a2a470be302e1c1ffdf21d42","status":"affected","lessThan":"96fa26b74cdcf9f5c98996bf36bec9fb5b19ffe2","versionType":"git"},{"version":"9954bf92c0cddd50a2a470be302e1c1ffdf21d42","status":"affected","lessThan":"2f3380121d49e829fb73ba86240c181bc32ad897","versionType":"git"},{"version":"9954bf92c0cddd50a2a470be302e1c1ffdf21d42","status":"affected","lessThan":"3d0163821c035040a46d816a42c0780f0f0a30a8","versionType":"git"},{"version":"9954bf92c0cddd50a2a470be302e1c1ffdf21d42","status":"affected","lessThan":"c09f11ef35955785f92369e25819bf0629df2e59","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/nfs/fs_context.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.6","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.6","versionType":"semver"},{"version":"5.10.36","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.11.20","status":"unaffected","lessThanOrEqual":"5.11.*","versionType":"semver"},{"version":"5.12.3","status":"unaffected","lessThanOrEqual":"5.12.*","versionType":"semver"},{"version":"5.13","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/nfs/fs_context.c"]}],"references":["https://git.kernel.org/stable/c/96fa26b74cdcf9f5c98996bf36bec9fb5b19ffe2","https://git.kernel.org/stable/c/2f3380121d49e829fb73ba86240c181bc32ad897","https://git.kernel.org/stable/c/3d0163821c035040a46d816a42c0780f0f0a30a8","https://git.kernel.org/stable/c/c09f11ef35955785f92369e25819bf0629df2e59"],"weaknesses":[],"ingestedAt":"2026-10-29T19:49:16.371Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2021/46xxx/CVE-2021-46952.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2021-46952","state":"PUBLISHED","datePublished":"2024-02-27T18:40:35.343Z","dateUpdated":"2026-05-11T13:45:06.243Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2024-02-25T13:45:52.722Z"},"containers":{"cna":{"title":"NFS: fs_context: validate UDP retrans to prevent shift out-of-bounds","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nNFS: fs_context: validate UDP retrans to prevent shift out-of-bounds\n\nFix shift out-of-bounds in xprt_calc_majortimeo(). This is caused\nby a garbage timeout (retrans) mount option being passed to nfs mount,\nin this case from syzkaller.\n\nIf the protocol is XPRT_TRANSPORT_UDP, then 'retrans' is a shift\nvalue for a 64-bit long integer, so 'retrans' cannot be >= 64.\nIf it is >= 64, fail the mount and return an error."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"9954bf92c0cddd50a2a470be302e1c1ffdf21d42","status":"affected","lessThan":"96fa26b74cdcf9f5c98996bf36bec9fb5b19ffe2","versionType":"git"},{"version":"9954bf92c0cddd50a2a470be302e1c1ffdf21d42","status":"affected","lessThan":"2f3380121d49e829fb73ba86240c181bc32ad897","versionType":"git"},{"version":"9954bf92c0cddd50a2a470be302e1c1ffdf21d42","status":"affected","lessThan":"3d0163821c035040a46d816a42c0780f0f0a30a8","versionType":"git"},{"version":"9954bf92c0cddd50a2a470be302e1c1ffdf21d42","status":"affected","lessThan":"c09f11ef35955785f92369e25819bf0629df2e59","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/nfs/fs_context.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.6","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.6","versionType":"semver"},{"version":"5.10.36","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.11.20","status":"unaffected","lessThanOrEqual":"5.11.*","versionType":"semver"},{"version":"5.12.3","status":"unaffected","lessThanOrEqual":"5.12.*","versionType":"semver"},{"version":"5.13","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/nfs/fs_context.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/96fa26b74cdcf9f5c98996bf36bec9fb5b19ffe2"},{"url":"https://git.kernel.org/stable/c/2f3380121d49e829fb73ba86240c181bc32ad897"},{"url":"https://git.kernel.org/stable/c/3d0163821c035040a46d816a42c0780f0f0a30a8"},{"url":"https://git.kernel.org/stable/c/c09f11ef35955785f92369e25819bf0629df2e59"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-05-11T13:45:06.243Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.6","versionEndExcluding":"5.10.36"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.6","versionEndExcluding":"5.11.20"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.6","versionEndExcluding":"5.12.3"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.6","versionEndExcluding":"5.13"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"id":"CVE-2021-46952","role":"CISA Coordinator","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"version":"2.0.3","timestamp":"2024-02-27T20:13:18.077870Z"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2024-07-05T17:22:02.950Z"}},{"title":"CVE Program Container","references":[{"url":"https://git.kernel.org/stable/c/96fa26b74cdcf9f5c98996bf36bec9fb5b19ffe2","tags":["x_transferred"]},{"url":"https://git.kernel.org/stable/c/2f3380121d49e829fb73ba86240c181bc32ad897","tags":["x_transferred"]},{"url":"https://git.kernel.org/stable/c/3d0163821c035040a46d816a42c0780f0f0a30a8","tags":["x_transferred"]},{"url":"https://git.kernel.org/stable/c/c09f11ef35955785f92369e25819bf0629df2e59","tags":["x_transferred"]}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2024-08-04T05:17:43.053Z"}}]}}}