# CVE-2024-50230: nilfs2: fix kernel bug due to missing clearing of checked flag

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

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: None; User interaction: Required; Scope: Unchanged; Confidentiality impact: High; 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.36% (percentile 22, 2026-11-30)
- **CWE:** CWE-787
- **Published:** 2024-11-09T10:14:40.576Z
- **Modified:** 2026-08-05T11:42:39.000Z

## Who should check

- Anyone running Linux \>= 8c26c4e2694a163d525976e804d81cd955bbb40c, \< 994b2fa13a6c9cf3feca93090a9c337d48e3d60d; \>= 8c26c4e2694a163d525976e804d81cd955bbb40c, \< 64afad73e4623308d8943645e5631f2c7a2d7971; \>= 8c26c4e2694a163d525976e804d81cd955bbb40c, \< aa0cee46c5d3fd9a39575a4c8a4f65f25f095b89; \>= 8c26c4e2694a163d525976e804d81cd955bbb40c, \< f05dbebb8ee34882505d53d83af7d18f28a49248; \>= 8c26c4e2694a163d525976e804d81cd955bbb40c, \< cd0cdb51b15203fa27d4b714be83b7dfffa0b752; \>= 8c26c4e2694a163d525976e804d81cd955bbb40c, \< f2f1fa446676c21edb777e6d2bc4fa8f956fab68; \>= 8c26c4e2694a163d525976e804d81cd955bbb40c, \< 56c6171932a7fb267ac6cb4ff8759b93ee1d0e2e; \>= 8c26c4e2694a163d525976e804d81cd955bbb40c, \< 41e192ad2779cae0102879612dfe46726e4396aa
- Anyone running Linux 3.10

## Description

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

nilfs2: fix kernel bug due to missing clearing of checked flag

Syzbot reported that in directory operations after nilfs2 detects
filesystem corruption and degrades to read-only,
\_\_block\_write\_begin\_int(), which is called to prepare block writes, may
fail the BUG\_ON check for accesses exceeding the folio/page size,
triggering a kernel bug.

This was found to be because the "checked" flag of a page/folio was not
cleared when it was discarded by nilfs2's own routine, which causes the
sanity check of directory entries to be skipped when the directory
page/folio is reloaded.  So, fix that.

This was necessary when the use of nilfs2's own page discard routine was
applied to more than just metadata files.

## Affected and fixed versions

- Linux: \>= 8c26c4e2694a163d525976e804d81cd955bbb40c, \< 994b2fa13a6c9cf3feca93090a9c337d48e3d60d; \>= 8c26c4e2694a163d525976e804d81cd955bbb40c, \< 64afad73e4623308d8943645e5631f2c7a2d7971; \>= 8c26c4e2694a163d525976e804d81cd955bbb40c, \< aa0cee46c5d3fd9a39575a4c8a4f65f25f095b89; \>= 8c26c4e2694a163d525976e804d81cd955bbb40c, \< f05dbebb8ee34882505d53d83af7d18f28a49248; \>= 8c26c4e2694a163d525976e804d81cd955bbb40c, \< cd0cdb51b15203fa27d4b714be83b7dfffa0b752; \>= 8c26c4e2694a163d525976e804d81cd955bbb40c, \< f2f1fa446676c21edb777e6d2bc4fa8f956fab68; \>= 8c26c4e2694a163d525976e804d81cd955bbb40c, \< 56c6171932a7fb267ac6cb4ff8759b93ee1d0e2e; \>= 8c26c4e2694a163d525976e804d81cd955bbb40c, \< 41e192ad2779cae0102879612dfe46726e4396aa (cvelist)
- Linux: 3.10 (cvelist)

## Mitigation

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

Details: https://flawdb.com/CVE-2024-50230.md
Affected: Linux >= 8c26c4e2694a163d525976e804d81cd955bbb40c, < 994b2fa13a6c9cf3feca93090a9c337d48e3d60d; >= 8c26c4e2694a163d525976e804d81cd955bbb40c, < 64afad73e4623308d8943645e5631f2c7a2d7971; >= 8c26c4e2694a163d525976e804d81cd955bbb40c, < aa0cee46c5d3fd9a39575a4c8a4f65f25f095b89; >= 8c26c4e2694a163d525976e…
Fixed in: Linux 994b2fa13a6c9cf3feca93090a9c337d48e3d60d, Linux 64afad73e4623308d8943645e5631f2c7a2d7971, Linux 56c6171932a7fb267ac6cb4ff8759b93ee1d0e2e, Linux 41e192ad2779cae0102879612dfe46726e4396aa

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

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

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

High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed). A user has to take an action, such as opening a link, for the attack to work.

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

Linux \>= 8c26c4e2694a163d525976e804d81cd955bbb40c, \< 994b2fa13a6c9cf3feca93090a9c337d48e3d60d; \>= 8c26c4e2694a163d525976e804d81cd955bbb40c, \< 64afad73e4623308d8943645e5631f2c7a2d7971; \>= 8c26c4e2694a163d525976e804d81cd955bbb40c, \< aa0cee46c5d3fd9a39575a4c8a4f65f25f095b89; \>= 8c26c4e2694a163d525976e804d81cd955bbb40c, \< f05dbebb8ee34882505d53d83af7d18f28a49248; \>= 8c26c4e2694a163d525976e804d81cd955bbb40c, \< cd0cdb51b15203fa27d4b714be83b7dfffa0b752; \>= 8c26c4e2694a163d525976e804d81cd955bbb40c, \< f2f1fa446676c21edb777e6d2bc4fa8f956fab68; \>= 8c26c4e2694a163d525976e804d81cd955bbb40c, \< 56c6171932a7fb267ac6cb4ff8759b93ee1d0e2e; \>= 8c26c4e2694a163d525976e804d81cd955bbb40c, \< 41e192ad2779cae0102879612dfe46726e4396aa; Linux 3.10.

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

Yes. Fixed in Linux 994b2fa13a6c9cf3feca93090a9c337d48e3d60d, Linux 64afad73e4623308d8943645e5631f2c7a2d7971, Linux 56c6171932a7fb267ac6cb4ff8759b93ee1d0e2e, Linux 41e192ad2779cae0102879612dfe46726e4396aa. Upgrade Linux to 41e192ad2779cae0102879612dfe46726e4396aa or later.

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

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/994b2fa13a6c9cf3feca93090a9c337d48e3d60d>
- patch: <https://git.kernel.org/stable/c/64afad73e4623308d8943645e5631f2c7a2d7971>
- patch: <https://git.kernel.org/stable/c/aa0cee46c5d3fd9a39575a4c8a4f65f25f095b89>
- patch: <https://git.kernel.org/stable/c/f05dbebb8ee34882505d53d83af7d18f28a49248>
- patch: <https://git.kernel.org/stable/c/cd0cdb51b15203fa27d4b714be83b7dfffa0b752>
- patch: <https://git.kernel.org/stable/c/f2f1fa446676c21edb777e6d2bc4fa8f956fab68>
- patch: <https://git.kernel.org/stable/c/56c6171932a7fb267ac6cb4ff8759b93ee1d0e2e>
- patch: <https://git.kernel.org/stable/c/41e192ad2779cae0102879612dfe46726e4396aa>
- 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-50230>

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