CVE-2024-50218

NameCVE-2024-50218
DescriptionIn the Linux kernel, the following vulnerability has been resolved: ocfs2: pass u64 to ocfs2_truncate_inline maybe overflow Syzbot reported a kernel BUG in ocfs2_truncate_inline. There are two reasons for this: first, the parameter value passed is greater than ocfs2_max_inline_data_with_xattr, second, the start and end parameters of ocfs2_truncate_inline are "unsigned int". So, we need to add a sanity check for byte_start and byte_len right before ocfs2_truncate_inline() in ocfs2_remove_inode_range(), if they are greater than ocfs2_max_inline_data_with_xattr return -EINVAL.
SourceCVE (at NVD; CERT, LWN, oss-sec, fulldisc, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)
ReferencesDLA-4008-1, DLA-4075-1, DSA-5818-1

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
linux (PTS)bullseye5.10.223-1vulnerable
bullseye (security)5.10.234-1fixed
bookworm6.1.123-1fixed
bookworm (security)6.1.128-1fixed
trixie6.12.12-1fixed
sid6.12.17-1fixed
linux-6.1 (PTS)bullseye (security)6.1.128-1~deb11u1fixed

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
linuxsourcebullseye5.10.234-1DLA-4075-1
linuxsourcebookworm6.1.119-1DSA-5818-1
linuxsource(unstable)6.11.7-1
linux-6.1sourcebullseye6.1.119-1~deb11u1DLA-4008-1

Notes

https://git.kernel.org/linus/bc0a2f3a73fcdac651fca64df39306d1e5ebe3b0 (6.12-rc6)

Search for package or bug name: Reporting problems