CVE-2021-46952

Severity CVSS v4.0:
Pending analysis
Type:
CWE-125 Out-of-bounds Read
Publication date:
27/02/2024
Last modified:
10/04/2024

Description

In the Linux kernel, the following vulnerability has been resolved:<br /> <br /> NFS: fs_context: validate UDP retrans to prevent shift out-of-bounds<br /> <br /> Fix shift out-of-bounds in xprt_calc_majortimeo(). This is caused<br /> by a garbage timeout (retrans) mount option being passed to nfs mount,<br /> in this case from syzkaller.<br /> <br /> If the protocol is XPRT_TRANSPORT_UDP, then &amp;#39;retrans&amp;#39; is a shift<br /> value for a 64-bit long integer, so &amp;#39;retrans&amp;#39; cannot be &gt;= 64.<br /> If it is &gt;= 64, fail the mount and return an error.

Vulnerable products and versions

CPE From Up to
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* 5.6.0 (including) 5.10.36 (excluding)
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* 5.11.0 (including) 5.11.20 (excluding)
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* 5.12.0 (including) 5.12.3 (excluding)