CVE-2024-41083: netfs: Fix netfs_page_mkwrite() to check folio->mapping is valid

Published Jul 29, 2024
·
Updated

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

netfs: Fix netfspagemkwrite() to check folio->mapping is valid

Fix netfspagemkwrite() to check that folio->mapping is valid once it has taken the folio lock (as filemappagemkwrite() 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: errorcode(0x0000) - not-present page

RIP: 0010:traceeventraweventnetfsfolio+0x61/0xc0 ... Call Trace: <TASK> ? diebody+0x1a/0x60 ? pagefaultoops+0x6e/0xa0 ? excpagefault+0xc2/0xe0 ? asmexcpagefault+0x22/0x30 ? traceeventraweventnetfsfolio+0x61/0xc0 tracenetfsfolio+0x39/0x40 netfspagemkwrite+0x14c/0x1d0 dopagemkwrite+0x50/0x90 doptemissing+0x184/0x200 handlemmfault+0x42d/0x500 handlemmfault+0x121/0x1f0 douseraddrfault+0x23e/0x3c0 excpagefault+0xc2/0xe0 asmexcpagefault+0x22/0x30

This is due to the invalidateinodepages2range() issued at the end of the DIO write interfering with the mmap'd writes.

Affected Software

2 affected componentsFixes available
Linux Linux kernel>=6.8<6.9.8
debian/linux
5.10.223-15.10.234-16.1.129-16.1.135-16.12.25-16.12.27-1

Event History

Jul 29, 2024
CVE Published
via MITRE·03:47 PM
Data Sourced
via MITRE·03:47 PM
Description
Dec 15, 2024
Data Sourced
via Ubuntu·12:30 PM
RemedyDescriptionSeverityAffected Software
May 1, 2025
Data Sourced
via Debian·12:34 AM
DescriptionAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2024-41083?

CVE-2024-41083 has been categorized with a moderate severity level due to its impact on the Linux kernel.

2

How do I fix CVE-2024-41083?

To fix CVE-2024-41083, update your Linux kernel to the versions 5.10.223-1, 5.10.226-1, 6.1.123-1, 6.1.128-1, 6.12.12-1, or 6.12.15-1.

3

Which Linux kernel versions are affected by CVE-2024-41083?

CVE-2024-41083 affects Linux kernel versions prior to 6.12.15, specifically between 6.8 and 6.9.8.

4

What is the nature of the vulnerability described in CVE-2024-41083?

CVE-2024-41083 involves a flaw in the netfs_page_mkwrite() function that fails to validate folio->mapping after acquiring the folio lock.

5

Is there a public record for CVE-2024-41083?

Yes, CVE-2024-41083 is publicly acknowledged and documented in vulnerability databases like NVD and MITRE.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203