# CVE-2024-41083: netfs: Fix netfs\_page\_mkwrite() to check folio-\>mapping is valid

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

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; 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.27% (percentile 12, 2026-11-28)
- **CWE:** CWE-476
- **Published:** 2024-07-29T15:47:59.419Z
- **Modified:** 2026-06-17T07:47:14.750Z

## Who should check

- Anyone running Linux \>= 102a7e2c598c22bd2621fa97eb1c93c89d469a12, \< 3473eb87afd402e415a8ca885b284ea0420dde25; \>= 102a7e2c598c22bd2621fa97eb1c93c89d469a12, \< a81c98bfa40c11f8ea79b5a9b3f5fda73bfbb4d2
- Anyone running Linux 6.8

## Description

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

netfs: Fix netfs\_page\_mkwrite() to check folio-\>mapping is valid

Fix netfs\_page\_mkwrite() to check that folio-\>mapping is valid once it has
taken the folio lock (as filemap\_page\_mkwrite() does).  Without this,
generic/247 occasionally oopses with something like the following:

    BUG: kernel NULL pointer dereference, address: 0000000000000000
    \#PF: supervisor read access in kernel mode
    \#PF: error\_code(0x0000) - not-present page

    RIP: 0010:trace\_event\_raw\_event\_netfs\_folio+0x61/0xc0
    ...
    Call Trace:
     \<TASK\>
     ? \_\_die\_body+0x1a/0x60
     ? page\_fault\_oops+0x6e/0xa0
     ? exc\_page\_fault+0xc2/0xe0
     ? asm\_exc\_page\_fault+0x22/0x30
     ? trace\_event\_raw\_event\_netfs\_folio+0x61/0xc0
     trace\_netfs\_folio+0x39/0x40
     netfs\_page\_mkwrite+0x14c/0x1d0
     do\_page\_mkwrite+0x50/0x90
     do\_pte\_missing+0x184/0x200
     \_\_handle\_mm\_fault+0x42d/0x500
     handle\_mm\_fault+0x121/0x1f0
     do\_user\_addr\_fault+0x23e/0x3c0
     exc\_page\_fault+0xc2/0xe0
     asm\_exc\_page\_fault+0x22/0x30

This is due to the invalidate\_inode\_pages2\_range() issued at the end of the
DIO write interfering with the mmap'd writes.

## Affected and fixed versions

- Linux: \>= 102a7e2c598c22bd2621fa97eb1c93c89d469a12, \< 3473eb87afd402e415a8ca885b284ea0420dde25; \>= 102a7e2c598c22bd2621fa97eb1c93c89d469a12, \< a81c98bfa40c11f8ea79b5a9b3f5fda73bfbb4d2 (cvelist)
- Linux: 6.8 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2024-41083.md
Affected: Linux >= 102a7e2c598c22bd2621fa97eb1c93c89d469a12, < 3473eb87afd402e415a8ca885b284ea0420dde25; >= 102a7e2c598c22bd2621fa97eb1c93c89d469a12, < a81c98bfa40c11f8ea79b5a9b3f5fda73bfbb4d2; Linux 6.8
Fixed in: Linux 3473eb87afd402e415a8ca885b284ea0420dde25

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

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

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

Medium: CVSS 5.5 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

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

Linux \>= 102a7e2c598c22bd2621fa97eb1c93c89d469a12, \< 3473eb87afd402e415a8ca885b284ea0420dde25; \>= 102a7e2c598c22bd2621fa97eb1c93c89d469a12, \< a81c98bfa40c11f8ea79b5a9b3f5fda73bfbb4d2; Linux 6.8.

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

Yes. Fixed in Linux 3473eb87afd402e415a8ca885b284ea0420dde25. No fix listed yet: follow the vendor advisory.

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

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/3473eb87afd402e415a8ca885b284ea0420dde25>
- patch: <https://git.kernel.org/stable/c/a81c98bfa40c11f8ea79b5a9b3f5fda73bfbb4d2>

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

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