# CVE-2024-45021: memcg\_write\_event\_control(): fix a user-triggerable oops

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

- **Severity:** HIGH 7.1
- **CVSS:** 7.1 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; 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.33% (percentile 19, 2026-11-28)
- **CWE:** CWE-476
- **Published:** 2024-09-11T15:13:55.211Z
- **Modified:** 2026-08-05T11:37:45.912Z

## Who should check

- Anyone running Linux \>= 0dea116876eefc9c7ca9c5d74fe665481e499fa3, \< fa5bfdf6cb5846a00e712d630a43e3cf55ccb411; \>= 0dea116876eefc9c7ca9c5d74fe665481e499fa3, \< 1b37ec85ad95b612307627758c6018cd9d92cca8; \>= 0dea116876eefc9c7ca9c5d74fe665481e499fa3, \< ad149f5585345e383baa65f1539d816cd715fd3b; \>= 0dea116876eefc9c7ca9c5d74fe665481e499fa3, \< 0fbe2a72e853a1052abe9bc2b7df8ddb102da227; \>= 0dea116876eefc9c7ca9c5d74fe665481e499fa3, \< 43768fa80fd192558737e24ed6548f74554611d7; \>= 0dea116876eefc9c7ca9c5d74fe665481e499fa3, \< f1aa7c509aa766080db7ab3aec2e31b1df09e57c; \>= 0dea116876eefc9c7ca9c5d74fe665481e499fa3, \< 21b578f1d599edb87462f11113c5b0fc7a04ac61; \>= 0dea116876eefc9c7ca9c5d74fe665481e499fa3, \< 046667c4d3196938e992fba0dfcde570aa85cd0e
- Anyone running Linux 2.6.34

## Description

In the Linux kernel, the following vulnerability has been resolved:

memcg\_write\_event\_control(): fix a user-triggerable oops

we are \*not\* guaranteed that anything past the terminating NUL
is mapped (let alone initialized with anything sane).

## Affected and fixed versions

- Linux: \>= 0dea116876eefc9c7ca9c5d74fe665481e499fa3, \< fa5bfdf6cb5846a00e712d630a43e3cf55ccb411; \>= 0dea116876eefc9c7ca9c5d74fe665481e499fa3, \< 1b37ec85ad95b612307627758c6018cd9d92cca8; \>= 0dea116876eefc9c7ca9c5d74fe665481e499fa3, \< ad149f5585345e383baa65f1539d816cd715fd3b; \>= 0dea116876eefc9c7ca9c5d74fe665481e499fa3, \< 0fbe2a72e853a1052abe9bc2b7df8ddb102da227; \>= 0dea116876eefc9c7ca9c5d74fe665481e499fa3, \< 43768fa80fd192558737e24ed6548f74554611d7; \>= 0dea116876eefc9c7ca9c5d74fe665481e499fa3, \< f1aa7c509aa766080db7ab3aec2e31b1df09e57c; \>= 0dea116876eefc9c7ca9c5d74fe665481e499fa3, \< 21b578f1d599edb87462f11113c5b0fc7a04ac61; \>= 0dea116876eefc9c7ca9c5d74fe665481e499fa3, \< 046667c4d3196938e992fba0dfcde570aa85cd0e (cvelist)
- Linux: 2.6.34 (cvelist)

## Mitigation

- Upgrade Linux to 046667c4d3196938e992fba0dfcde570aa85cd0e or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2024-45021.md
Affected: Linux >= 0dea116876eefc9c7ca9c5d74fe665481e499fa3, < fa5bfdf6cb5846a00e712d630a43e3cf55ccb411; >= 0dea116876eefc9c7ca9c5d74fe665481e499fa3, < 1b37ec85ad95b612307627758c6018cd9d92cca8; >= 0dea116876eefc9c7ca9c5d74fe665481e499fa3, < ad149f5585345e383baa65f1539d816cd715fd3b; >= 0dea116876eefc9c7ca9c5d…
Fixed in: Linux 1b37ec85ad95b612307627758c6018cd9d92cca8, Linux 0fbe2a72e853a1052abe9bc2b7df8ddb102da227, Linux 43768fa80fd192558737e24ed6548f74554611d7, Linux 21b578f1d599edb87462f11113c5b0fc7a04ac61, Linux 046667c4d3196938e992fba0dfcde570aa85cd0e

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-45021 being exploited?

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

### How serious is CVE-2024-45021?

High: CVSS 7.1 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2024-45021?

Linux \>= 0dea116876eefc9c7ca9c5d74fe665481e499fa3, \< fa5bfdf6cb5846a00e712d630a43e3cf55ccb411; \>= 0dea116876eefc9c7ca9c5d74fe665481e499fa3, \< 1b37ec85ad95b612307627758c6018cd9d92cca8; \>= 0dea116876eefc9c7ca9c5d74fe665481e499fa3, \< ad149f5585345e383baa65f1539d816cd715fd3b; \>= 0dea116876eefc9c7ca9c5d74fe665481e499fa3, \< 0fbe2a72e853a1052abe9bc2b7df8ddb102da227; \>= 0dea116876eefc9c7ca9c5d74fe665481e499fa3, \< 43768fa80fd192558737e24ed6548f74554611d7; \>= 0dea116876eefc9c7ca9c5d74fe665481e499fa3, \< f1aa7c509aa766080db7ab3aec2e31b1df09e57c; \>= 0dea116876eefc9c7ca9c5d74fe665481e499fa3, \< 21b578f1d599edb87462f11113c5b0fc7a04ac61; \>= 0dea116876eefc9c7ca9c5d74fe665481e499fa3, \< 046667c4d3196938e992fba0dfcde570aa85cd0e; Linux 2.6.34.

### Is there a fix for CVE-2024-45021?

Yes. Fixed in Linux 1b37ec85ad95b612307627758c6018cd9d92cca8, Linux 0fbe2a72e853a1052abe9bc2b7df8ddb102da227, Linux 43768fa80fd192558737e24ed6548f74554611d7, Linux 21b578f1d599edb87462f11113c5b0fc7a04ac61, Linux 046667c4d3196938e992fba0dfcde570aa85cd0e. Upgrade Linux to 046667c4d3196938e992fba0dfcde570aa85cd0e or later.

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

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/fa5bfdf6cb5846a00e712d630a43e3cf55ccb411>
- patch: <https://git.kernel.org/stable/c/1b37ec85ad95b612307627758c6018cd9d92cca8>
- patch: <https://git.kernel.org/stable/c/ad149f5585345e383baa65f1539d816cd715fd3b>
- patch: <https://git.kernel.org/stable/c/0fbe2a72e853a1052abe9bc2b7df8ddb102da227>
- patch: <https://git.kernel.org/stable/c/43768fa80fd192558737e24ed6548f74554611d7>
- patch: <https://git.kernel.org/stable/c/f1aa7c509aa766080db7ab3aec2e31b1df09e57c>
- patch: <https://git.kernel.org/stable/c/21b578f1d599edb87462f11113c5b0fc7a04ac61>
- patch: <https://git.kernel.org/stable/c/046667c4d3196938e992fba0dfcde570aa85cd0e>
- other: <https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html>
- other: <https://lists.debian.org/debian-lts-announce/2024/10/msg00003.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-45021>

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