Bug 2324862 (CVE-2024-50218) - CVE-2024-50218 kernel: ocfs2: pass u64 to ocfs2_truncate_inline maybe overflow
Summary: CVE-2024-50218 kernel: ocfs2: pass u64 to ocfs2_truncate_inline maybe overflow
Keywords:
Status: NEW
Alias: CVE-2024-50218
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On: 2325082
Blocks:
TreeView+ depends on / blocked
 
Reported: 2024-11-09 11:01 UTC by OSIDB Bzimport
Modified: 2024-11-21 18:56 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2024-11-09 11:01:53 UTC
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.

Comment 1 Avinash Hanwate 2024-11-11 04:37:16 UTC
Upstream advisory:
https://lore.kernel.org/linux-cve-announce/2024110925-CVE-2024-50218-68cd@gregkh/T


Note You need to log in before you can comment on or make changes to this bug.