VDB

CVE-2024-50218

CVE-2024-50218 PUBLISHED

ocfs2: pass u64 to ocfs2_truncate_inline maybe overflow

Reported by linux · Published November 9, 2024

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.

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
linux_kernellinux6.11.7, 6.6.60, 6.1.116, 5.15.171, 5.10.229, 5.4.285, 4.19.323

Affected products

VendorProductVersions
LinuxLinux1afc32b952335f665327a1a9001ba1b44bb76fd9, 1afc32b952335f665327a1a9001ba1b44bb76fd9, 1afc32b952335f665327a1a9001ba1b44bb76fd9
LinuxLinux2.6.24, 0, 4.19.323
linuxlinux_kernel2.6.24, 2.6.24, 2.6.24
LinuxLinux1afc32b952335f665327a1a9001ba1b44bb76fd9, 1afc32b952335f665327a1a9001ba1b44bb76fd9, 1afc32b952335f665327a1a9001ba1b44bb76fd9

Timeline

  • Nov 9, 2024 Coalition ESS Score (12 in total, the first dated here)
  • Nov 9, 2024 CVE Published
  • Nov 10, 2024 EPSS Score (30 in total, the first dated here)
  • Jan 2, 2026 Security Advisory (143 in total, the first dated here)
  • Apr 29, 2026 Distribution Patch (126 in total, the first dated here)

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2024-50218
vulnetix vdb fixes CVE-2024-50218

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2024-50218/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›