CVEvulnerability

CVE-2021-46952

7.1 HIGH Published 2024-02-27 Modified 2026-06-17 Official page ↗
Status
Modified
Published
2024-02-27
Last modified
2026-06-17
Assigner
416baaa9-dc9f-4396-8d5f-8c081fb06d67
CVSS 3.1 ([email protected])
7.1 HIGH — CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H
Weaknesses
CWE-125

Description

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

Affected configurations

• linux linux kernel (>= 5.6.0 < 5.10.36) • linux linux kernel (>= 5.11.0 < 5.11.20) • linux linux kernel (>= 5.12.0 < 5.12.3)

Related

Weakness · CWE (1)

  • CWE-125 Out-of-bounds Read weakness

References