# CVE-2024-36027: btrfs: zoned: do not flag ZEROOUT on non-dirty extent buffer

> 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:N/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: High; 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.28% (percentile 13, 2026-11-26)
- **Published:** 2024-05-30T15:10:17.129Z
- **Modified:** 2026-08-05T11:31:41.392Z

## Who should check

- Anyone running Linux \>= aa6313e6ff2bfbf736a2739047bba355d8241584, \< f4b994fccbb6f294c4b31a6ca0114b09f7245043; \>= aa6313e6ff2bfbf736a2739047bba355d8241584, \< 68879386180c0efd5a11e800b0525a01068c9457
- Anyone running Linux 6.8

## Description

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

btrfs: zoned: do not flag ZEROOUT on non-dirty extent buffer

Btrfs clears the content of an extent buffer marked as
EXTENT\_BUFFER\_ZONED\_ZEROOUT before the bio submission. This mechanism is
introduced to prevent a write hole of an extent buffer, which is once
allocated, marked dirty, but turns out unnecessary and cleaned up within
one transaction operation.

Currently, btrfs\_clear\_buffer\_dirty() marks the extent buffer as
EXTENT\_BUFFER\_ZONED\_ZEROOUT, and skips the entry function. If this call
happens while the buffer is under IO (with the WRITEBACK flag set,
without the DIRTY flag), we can add the ZEROOUT flag and clear the
buffer's content just before a bio submission. As a result:

1) it can lead to adding faulty delayed reference item which leads to a
   FS corrupted (EUCLEAN) error, and

2) it writes out cleared tree node on disk

The former issue is previously discussed in \[1\]. The corruption happens
when it runs a delayed reference update. So, on-disk data is safe.

\[1\] https://lore.kernel.org/linux-btrfs/3f4f2a0ff1a6c818050434288925bdcf3cd719e5.1709124777.git.naohiro.aota@wdc.com/

The latter one can reach on-disk data. But, as that node is already
processed by btrfs\_clear\_buffer\_dirty(), that will be invalidated in the
next transaction commit anyway. So, the chance of hitting the corruption
is relatively small.

Anyway, we should skip flagging ZEROOUT on a non-DIRTY extent buffer, to
keep the content under IO intact.

## Affected and fixed versions

- Linux: \>= aa6313e6ff2bfbf736a2739047bba355d8241584, \< f4b994fccbb6f294c4b31a6ca0114b09f7245043; \>= aa6313e6ff2bfbf736a2739047bba355d8241584, \< 68879386180c0efd5a11e800b0525a01068c9457 (cvelist)
- Linux: 6.8 (cvelist)

## Mitigation

- Upgrade Linux to 68879386180c0efd5a11e800b0525a01068c9457 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-36027. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-36027.md
Affected: Linux >= aa6313e6ff2bfbf736a2739047bba355d8241584, < f4b994fccbb6f294c4b31a6ca0114b09f7245043; >= aa6313e6ff2bfbf736a2739047bba355d8241584, < 68879386180c0efd5a11e800b0525a01068c9457; Linux 6.8
Fixed in: Linux 68879386180c0efd5a11e800b0525a01068c9457

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

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

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

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

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

Linux \>= aa6313e6ff2bfbf736a2739047bba355d8241584, \< f4b994fccbb6f294c4b31a6ca0114b09f7245043; \>= aa6313e6ff2bfbf736a2739047bba355d8241584, \< 68879386180c0efd5a11e800b0525a01068c9457; Linux 6.8.

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

Yes. Fixed in Linux 68879386180c0efd5a11e800b0525a01068c9457. Upgrade Linux to 68879386180c0efd5a11e800b0525a01068c9457 or later.

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

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/f4b994fccbb6f294c4b31a6ca0114b09f7245043>
- patch: <https://git.kernel.org/stable/c/68879386180c0efd5a11e800b0525a01068c9457>

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

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