# CVE-2024-46780: nilfs2: protect references to superblock parameters exposed in sysfs

> 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:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; 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.34% (percentile 20, 2026-11-26)
- **Published:** 2024-09-18T07:12:36.736Z
- **Modified:** 2026-08-05T11:38:31.009Z

## Who should check

- Anyone running Linux \>= da7141fb78db915680616e15677539fc8140cf53, \< b90beafac05931cbfcb6b1bd4f67c1923f47040e; \>= da7141fb78db915680616e15677539fc8140cf53, \< ba97ba173f9625d5f34a986088979eae8b80d38e; \>= da7141fb78db915680616e15677539fc8140cf53, \< 157c0d94b4c40887329418c70ef4edd1a8d6b4ed; \>= da7141fb78db915680616e15677539fc8140cf53, \< b14e7260bb691d7f563f61da07d61e3c8b59a614; \>= da7141fb78db915680616e15677539fc8140cf53, \< 19cfeba0e4b8eda51484fcf8cf7d150418e1d880; \>= da7141fb78db915680616e15677539fc8140cf53, \< 8c6e43b3d5f109cf9c61bc188fcc8175404e924f; \>= da7141fb78db915680616e15677539fc8140cf53, \< 962562d4c70c5cdeb4e955d63ff2017c4eca1aad; \>= da7141fb78db915680616e15677539fc8140cf53, \< 683408258917541bdb294cd717c210a04381931e
- Anyone running Linux 3.17

## Description

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

nilfs2: protect references to superblock parameters exposed in sysfs

The superblock buffers of nilfs2 can not only be overwritten at runtime
for modifications/repairs, but they are also regularly swapped, replaced
during resizing, and even abandoned when degrading to one side due to
backing device issues.  So, accessing them requires mutual exclusion using
the reader/writer semaphore "nilfs-\>ns\_sem".

Some sysfs attribute show methods read this superblock buffer without the
necessary mutual exclusion, which can cause problems with pointer
dereferencing and memory access, so fix it.

## Affected and fixed versions

- Linux: \>= da7141fb78db915680616e15677539fc8140cf53, \< b90beafac05931cbfcb6b1bd4f67c1923f47040e; \>= da7141fb78db915680616e15677539fc8140cf53, \< ba97ba173f9625d5f34a986088979eae8b80d38e; \>= da7141fb78db915680616e15677539fc8140cf53, \< 157c0d94b4c40887329418c70ef4edd1a8d6b4ed; \>= da7141fb78db915680616e15677539fc8140cf53, \< b14e7260bb691d7f563f61da07d61e3c8b59a614; \>= da7141fb78db915680616e15677539fc8140cf53, \< 19cfeba0e4b8eda51484fcf8cf7d150418e1d880; \>= da7141fb78db915680616e15677539fc8140cf53, \< 8c6e43b3d5f109cf9c61bc188fcc8175404e924f; \>= da7141fb78db915680616e15677539fc8140cf53, \< 962562d4c70c5cdeb4e955d63ff2017c4eca1aad; \>= da7141fb78db915680616e15677539fc8140cf53, \< 683408258917541bdb294cd717c210a04381931e (cvelist)
- Linux: 3.17 (cvelist)

## Mitigation

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

Details: https://flawdb.com/CVE-2024-46780.md
Affected: Linux >= da7141fb78db915680616e15677539fc8140cf53, < b90beafac05931cbfcb6b1bd4f67c1923f47040e; >= da7141fb78db915680616e15677539fc8140cf53, < ba97ba173f9625d5f34a986088979eae8b80d38e; >= da7141fb78db915680616e15677539fc8140cf53, < 157c0d94b4c40887329418c70ef4edd1a8d6b4ed; >= da7141fb78db915680616e1…
Fixed in: Linux 157c0d94b4c40887329418c70ef4edd1a8d6b4ed, Linux 19cfeba0e4b8eda51484fcf8cf7d150418e1d880, Linux 8c6e43b3d5f109cf9c61bc188fcc8175404e924f, Linux 962562d4c70c5cdeb4e955d63ff2017c4eca1aad, Linux 683408258917541bdb294cd717c210a04381931e

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

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

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

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

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

Linux \>= da7141fb78db915680616e15677539fc8140cf53, \< b90beafac05931cbfcb6b1bd4f67c1923f47040e; \>= da7141fb78db915680616e15677539fc8140cf53, \< ba97ba173f9625d5f34a986088979eae8b80d38e; \>= da7141fb78db915680616e15677539fc8140cf53, \< 157c0d94b4c40887329418c70ef4edd1a8d6b4ed; \>= da7141fb78db915680616e15677539fc8140cf53, \< b14e7260bb691d7f563f61da07d61e3c8b59a614; \>= da7141fb78db915680616e15677539fc8140cf53, \< 19cfeba0e4b8eda51484fcf8cf7d150418e1d880; \>= da7141fb78db915680616e15677539fc8140cf53, \< 8c6e43b3d5f109cf9c61bc188fcc8175404e924f; \>= da7141fb78db915680616e15677539fc8140cf53, \< 962562d4c70c5cdeb4e955d63ff2017c4eca1aad; \>= da7141fb78db915680616e15677539fc8140cf53, \< 683408258917541bdb294cd717c210a04381931e; Linux 3.17.

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

Yes. Fixed in Linux 157c0d94b4c40887329418c70ef4edd1a8d6b4ed, Linux 19cfeba0e4b8eda51484fcf8cf7d150418e1d880, Linux 8c6e43b3d5f109cf9c61bc188fcc8175404e924f, Linux 962562d4c70c5cdeb4e955d63ff2017c4eca1aad, Linux 683408258917541bdb294cd717c210a04381931e. Upgrade Linux to 683408258917541bdb294cd717c210a04381931e or later.

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

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/b90beafac05931cbfcb6b1bd4f67c1923f47040e>
- patch: <https://git.kernel.org/stable/c/ba97ba173f9625d5f34a986088979eae8b80d38e>
- patch: <https://git.kernel.org/stable/c/157c0d94b4c40887329418c70ef4edd1a8d6b4ed>
- patch: <https://git.kernel.org/stable/c/b14e7260bb691d7f563f61da07d61e3c8b59a614>
- patch: <https://git.kernel.org/stable/c/19cfeba0e4b8eda51484fcf8cf7d150418e1d880>
- patch: <https://git.kernel.org/stable/c/8c6e43b3d5f109cf9c61bc188fcc8175404e924f>
- patch: <https://git.kernel.org/stable/c/962562d4c70c5cdeb4e955d63ff2017c4eca1aad>
- patch: <https://git.kernel.org/stable/c/683408258917541bdb294cd717c210a04381931e>
- 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-46780>

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