Out-of-bounds read in Linux kernel - CVE-2021-45469
Published: May 24, 2022 / Updated: May 25, 2022
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
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
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
- https://git.kernel.org/pub/scm/linux/kernel/git/chao/linux.git/commit/?h=dev&id=5598b24efaf4892741c798b425d543e4bed357a1
- https://bugzilla.kernel.org/show_bug.cgi?id=215235
- http://www.openwall.com/lists/oss-security/2021/12/25/1
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/AK2C4A43BZSWATZWFUHHHUQF3HPIALNP/
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/QG7XV2WXKMSMKIQKIBG5LW3Y3GXEWG5Q/
- https://security.netapp.com/advisory/ntap-20220114-0003/
- https://www.debian.org/security/2022/dsa-5050
- https://www.debian.org/security/2022/dsa-5096
- https://lists.debian.org/debian-lts-announce/2022/03/msg00012.html