Out-of-bounds read in Linux kernel - CVE-2021-45469

 

Out-of-bounds read in Linux kernel - CVE-2021-45469

Published: May 24, 2022 / Updated: May 25, 2022


Vulnerability identifier: #VU63578
CSH Severity: Low
CVSS v4: 8.5 [CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2021-45469
CWE-ID: CWE-125
Exploitation vector: Local access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a local user to execute arbitrary code.

The vulnerability exists due to a boundary condition in the __f2fs_setxattr() function in fs/f2fs/xattr.c in the Linux kernel when an inode has an invalid last xattr entry. A local user can create a specially crafted f2fs image, trigger an out-of-bounds read error, and perform a denial of service attack or possibly execute arbitrary code.


Affected software

Linux kernel
Debian Linux
Anolis OS
Ubuntu
Fedora
kernel-debug
python-perf
perf
kernel-tools-libs-devel
kernel-tools-libs
kernel-tools
kernel-headers
kernel-devel
kernel-debug-devel
kernel
bpftool
linux (Debian package)
linux-image-bluefield (Ubuntu package)
linux-image-5.4.0-1032-bluefield (Ubuntu package)

How to mitigate CVE-2021-45469

Install updates from vendor's website.

Linux kernel - update to 5.16 rc3
kernel-debug - update to 4.19.91-26
python-perf - update to 4.19.91-26
perf - update to 4.19.91-26
kernel-tools-libs-devel - update to 4.19.91-26
kernel-tools-libs - update to 4.19.91-26
kernel-tools - update to 4.19.91-26
kernel-headers - update to 4.19.91-26
kernel-devel - update to 4.19.91-26
kernel-debug-devel - update to 4.19.91-26
kernel - update to 4.19.91-26
bpftool - update to 4.19.91-26
linux (Debian package) - addressed in versions 4.19.232-1, 5.10.92-1
linux-image-bluefield (Ubuntu package) - update to 5.4.0.1032.33
linux-image-5.4.0-1032-bluefield (Ubuntu package) - update to 5.4.0-1032.35
kernel - addressed in versions 5.15.12-100.fc34, 5.15.12-200.fc35

External References

Related Security Bulletins