CVE-2024-50218

MEDIUM

Linux Kernel Integer Overflow in ocfs2_truncate_inline

Title source: llm
STIX 2.1

Description

In 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.

Scores

CVSS v3 5.5
EPSS 0.0027
EPSS Percentile 19.4%
Attack Vector LOCAL
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

Details

Status published
Products (27)
linux/Kernel 2.6.24 - 4.19.323linux
linux/Kernel 4.20.0 - 5.4.285linux
linux/Kernel 5.11.0 - 5.15.171linux
linux/Kernel 5.16.0 - 6.1.116linux
linux/Kernel 5.5.0 - 5.10.229linux
linux/Kernel 6.2.0 - 6.6.60linux
linux/Kernel 6.7.0 - 6.11.7linux
Linux/Linux < 2.6.24
Linux/Linux 1afc32b952335f665327a1a9001ba1b44bb76fd9 - 0b6b8c2055784261de3fb641c5d0d63964318e8f
Linux/Linux 1afc32b952335f665327a1a9001ba1b44bb76fd9 - 27d95867bee806cdc448d122bd99f1d8b0544035
... and 17 more
Published Nov 09, 2024
Tracked Since Feb 18, 2026