Skip to content
FlawDB
Sign in
Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

CVE-2024-50218

MEDIUM 5.5EPSS 17%

ocfs2: pass u64 to ocfs2_truncate_inline maybe overflow

Mitigation

  • No fix listed yet: follow the vendor advisory.

Who should check

  • Anyone running Linux >= 1afc32b952335f665327a1a9001ba1b44bb76fd9, < 27d95867bee806cdc448d122bd99f1d8b0544035; >= 1afc32b952335f665327a1a9001ba1b44bb76fd9, < 95fbed8ae8c32c0977e6be1721c190d8fea23f2f; >= 1afc32b952335f665327a1a9001ba1b44bb76fd9, < 70767689ec6ee5f05fb0a2c17d7ec1927946e486; >= 1afc32b952335f665327a1a9001ba1b44bb76fd9, < ecd62f684386fa64f9c0cea92eea361f4e6444c2; >= 1afc32b952335f665327a1a9001ba1b44bb76fd9, < 2fe5d62e122b040ce7fc4d31aa7fa96ae328cefc; >= 1afc32b952335f665327a1a9001ba1b44bb76fd9, < 88f97a4b5843ce21c1286e082c02a5fb4d8eb473; >= 1afc32b952335f665327a1a9001ba1b44bb76fd9, < 0b6b8c2055784261de3fb641c5d0d63964318e8f; >= 1afc32b952335f665327a1a9001ba1b44bb76fd9, < bc0a2f3a73fcdac651fca64df39306d1e5ebe3b0
  • Anyone running Linux 2.6.24

Vulnerability facts

Affected
Linux >= 1afc32b952335f665327a1a9001ba1b44bb76fd9, < 27d95867bee806cdc448d122bd99f1d8b0544035; >= 1afc32b952335f665327a1a9001ba1b44bb76fd9, < 95fbed8ae8c32c0977e6be1721c190d8fea23f2f; >= 1afc32b952335f665327a1a9001ba1b44bb76fd9, < 70767689ec6ee5f05fb0a2c17d7ec1927946e486; >= 1afc32b952335f665327a1a9001ba1b44bb76fd9, < ecd62f684386fa64f9c0cea92eea361f4e6444c2; >= 1afc32b952335f665327a1a9001ba1b44bb76fd9, < 2fe5d62e122b040ce7fc4d31aa7fa96ae328cefc; >= 1afc32b952335f665327a1a9001ba1b44bb76fd9, < 88f97a4b5843ce21c1286e082c02a5fb4d8eb473; >= 1afc32b952335f665327a1a9001ba1b44bb76fd9, < 0b6b8c2055784261de3fb641c5d0d63964318e8f; >= 1afc32b952335f665327a1a9001ba1b44bb76fd9, < bc0a2f3a73fcdac651fca64df39306d1e5ebe3b0; Linux 2.6.24
Fixed in
Linux 27d95867bee806cdc448d122bd99f1d8b0544035, Linux 95fbed8ae8c32c0977e6be1721c190d8fea23f2f, Linux 70767689ec6ee5f05fb0a2c17d7ec1927946e486, Linux 2fe5d62e122b040ce7fc4d31aa7fa96ae328cefc, Linux 88f97a4b5843ce21c1286e082c02a5fb4d8eb473, Linux 0b6b8c2055784261de3fb641c5d0d63964318e8f
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
None known
Remote exploitation
Not remotely exploitable (local or adjacent access needed)
CVSS
5.5 (v3.1, NVD)CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
  • Attack vector: Local
  • Attack complexity: Low
  • Privileges required: Low
  • User interaction: None
  • Scope: Unchanged
  • Confidentiality impact: None
  • Integrity impact: None
  • Availability impact: High
EPSS
0.32% chance of exploitation in 30 days (percentile 17, 2026-11-26)
Published
Modified

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.

Affected and fixed versions

Package / productAffectedFixedSource
Linux>= 1afc32b952335f665327a1a9001ba1b44bb76fd9, < 27d95867bee806cdc448d122bd99f1d8b0544035; >= 1afc32b952335f665327a1a9001ba1b44bb76fd9, < 95fbed8ae8c32c0977e6be1721c190d8fea23f2f; >= 1afc32b952335f665327a1a9001ba1b44bb76fd9, < 70767689ec6ee5f05fb0a2c17d7ec1927946e486; >= 1afc32b952335f665327a1a9001ba1b44bb76fd9, < ecd62f684386fa64f9c0cea92eea361f4e6444c2; >= 1afc32b952335f665327a1a9001ba1b44bb76fd9, < 2fe5d62e122b040ce7fc4d31aa7fa96ae328cefc; >= 1afc32b952335f665327a1a9001ba1b44bb76fd9, < 88f97a4b5843ce21c1286e082c02a5fb4d8eb473; >= 1afc32b952335f665327a1a9001ba1b44bb76fd9, < 0b6b8c2055784261de3fb641c5d0d63964318e8f; >= 1afc32b952335f665327a1a9001ba1b44bb76fd9, < bc0a2f3a73fcdac651fca64df39306d1e5ebe3b0—cvelist
Linux2.6.24—cvelist

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

Check whether anything I run is affected by CVE-2024-50218. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-50218.md
Affected: Linux >= 1afc32b952335f665327a1a9001ba1b44bb76fd9, < 27d95867bee806cdc448d122bd99f1d8b0544035; >= 1afc32b952335f665327a1a9001ba1b44bb76fd9, < 95fbed8ae8c32c0977e6be1721c190d8fea23f2f; >= 1afc32b952335f665327a1a9001ba1b44bb76fd9, < 70767689ec6ee5f05fb0a2c17d7ec1927946e486; >= 1afc32b952335f665327a1a…
Fixed in: Linux 27d95867bee806cdc448d122bd99f1d8b0544035, Linux 95fbed8ae8c32c0977e6be1721c190d8fea23f2f, Linux 70767689ec6ee5f05fb0a2c17d7ec1927946e486, Linux 2fe5d62e122b040ce7fc4d31aa7fa96ae328cefc, Linux 88f97a4b5843ce21c1286e082c02a5fb4d8eb473, Linux 0b6b8c2055784261de3fb641c5d0d63964318e8f

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.

References

FAQ

Is CVE-2024-50218 being exploited?

There is no confirmed exploitation: CVE-2024-50218 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.32% chance of exploitation in the next 30 days (as of 2026-11-26).

How serious is CVE-2024-50218?

Medium: CVSS 5.5 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

Which versions are affected by CVE-2024-50218?

Linux >= 1afc32b952335f665327a1a9001ba1b44bb76fd9, < 27d95867bee806cdc448d122bd99f1d8b0544035; >= 1afc32b952335f665327a1a9001ba1b44bb76fd9, < 95fbed8ae8c32c0977e6be1721c190d8fea23f2f; >= 1afc32b952335f665327a1a9001ba1b44bb76fd9, < 70767689ec6ee5f05fb0a2c17d7ec1927946e486; >= 1afc32b952335f665327a1a9001ba1b44bb76fd9, < ecd62f684386fa64f9c0cea92eea361f4e6444c2; >= 1afc32b952335f665327a1a9001ba1b44bb76fd9, < 2fe5d62e122b040ce7fc4d31aa7fa96ae328cefc; >= 1afc32b952335f665327a1a9001ba1b44bb76fd9, < 88f97a4b5843ce21c1286e082c02a5fb4d8eb473; >= 1afc32b952335f665327a1a9001ba1b44bb76fd9, < 0b6b8c2055784261de3fb641c5d0d63964318e8f; >= 1afc32b952335f665327a1a9001ba1b44bb76fd9, < bc0a2f3a73fcdac651fca64df39306d1e5ebe3b0; Linux 2.6.24.

Is there a fix for CVE-2024-50218?

Yes. Fixed in Linux 27d95867bee806cdc448d122bd99f1d8b0544035, Linux 95fbed8ae8c32c0977e6be1721c190d8fea23f2f, Linux 70767689ec6ee5f05fb0a2c17d7ec1927946e486, Linux 2fe5d62e122b040ce7fc4d31aa7fa96ae328cefc, Linux 88f97a4b5843ce21c1286e082c02a5fb4d8eb473, Linux 0b6b8c2055784261de3fb641c5d0d63964318e8f. No fix listed yet: follow the vendor advisory.

How do I check if I'm affected by CVE-2024-50218?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

Sponsors