# CVE-2024-50218: ocfs2: pass u64 to ocfs2\_truncate\_inline maybe overflow

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **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
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.32% (percentile 17, 2026-11-26)
- **Published:** 2024-11-09T10:14:29.708Z
- **Modified:** 2026-06-17T08:03:54.090Z

## 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

## 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

- Linux: \>= 1afc32b952335f665327a1a9001ba1b44bb76fd9, \< 27d95867bee806cdc448d122bd99f1d8b0544035; \>= 1afc32b952335f665327a1a9001ba1b44bb76fd9, \< 95fbed8ae8c32c0977e6be1721c190d8fea23f2f; \>= 1afc32b952335f665327a1a9001ba1b44bb76fd9, \< 70767689ec6ee5f05fb0a2c17d7ec1927946e486; \>= 1afc32b952335f665327a1a9001ba1b44bb76fd9, \< ecd62f684386fa64f9c0cea92eea361f4e6444c2; \>= 1afc32b952335f665327a1a9001ba1b44bb76fd9, \< 2fe5d62e122b040ce7fc4d31aa7fa96ae328cefc; \>= 1afc32b952335f665327a1a9001ba1b44bb76fd9, \< 88f97a4b5843ce21c1286e082c02a5fb4d8eb473; \>= 1afc32b952335f665327a1a9001ba1b44bb76fd9, \< 0b6b8c2055784261de3fb641c5d0d63964318e8f; \>= 1afc32b952335f665327a1a9001ba1b44bb76fd9, \< bc0a2f3a73fcdac651fca64df39306d1e5ebe3b0 (cvelist)
- Linux: 2.6.24 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
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.
```

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

## References

- patch: <https://git.kernel.org/stable/c/27d95867bee806cdc448d122bd99f1d8b0544035>
- patch: <https://git.kernel.org/stable/c/95fbed8ae8c32c0977e6be1721c190d8fea23f2f>
- patch: <https://git.kernel.org/stable/c/70767689ec6ee5f05fb0a2c17d7ec1927946e486>
- patch: <https://git.kernel.org/stable/c/ecd62f684386fa64f9c0cea92eea361f4e6444c2>
- patch: <https://git.kernel.org/stable/c/2fe5d62e122b040ce7fc4d31aa7fa96ae328cefc>
- patch: <https://git.kernel.org/stable/c/88f97a4b5843ce21c1286e082c02a5fb4d8eb473>
- patch: <https://git.kernel.org/stable/c/0b6b8c2055784261de3fb641c5d0d63964318e8f>
- patch: <https://git.kernel.org/stable/c/bc0a2f3a73fcdac651fca64df39306d1e5ebe3b0>
- other: <https://lists.debian.org/debian-lts-announce/2025/03/msg00002.html>
- other: <https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2024-50218>

HTML: <https://flawdb.com/CVE-2024-50218> · JSON: <https://flawdb.com/api/v1/entries/CVE-2024-50218>
