# CVE-2024-49934: fs/inode: Prevent dump\_mapping() accessing invalid dentry.d\_name.name

> 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:H/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; 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.34% (percentile 20, 2026-11-26)
- **Published:** 2024-10-21T18:01:55.752Z
- **Modified:** 2026-08-05T11:40:32.168Z

## Who should check

- Anyone running Linux \>= 1c6fb1d89e73cd3bbfae7c400f1c615272aa435f, \< 1a4159138e718db6199f0abf376ad52f726dcc5c; \>= 1c6fb1d89e73cd3bbfae7c400f1c615272aa435f, \< e0f6ee75f50476607ca82fc7c3711c795ce09b52; \>= 1c6fb1d89e73cd3bbfae7c400f1c615272aa435f, \< f92b8829c6e75632de4e2b9f70e7a7e6c5c2ba98; \>= 1c6fb1d89e73cd3bbfae7c400f1c615272aa435f, \< ef921bc72328b577cb45772ff7921cba4773b74a; \>= 1c6fb1d89e73cd3bbfae7c400f1c615272aa435f, \< 7f7b850689ac06a62befe26e1fd1806799e7f152
- Anyone running Linux 5.0

## Description

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

fs/inode: Prevent dump\_mapping() accessing invalid dentry.d\_name.name

It's observed that a crash occurs during hot-remove a memory device,
in which user is accessing the hugetlb. See calltrace as following:

------------\[ cut here \]------------
WARNING: CPU: 1 PID: 14045 at arch/x86/mm/fault.c:1278 do\_user\_addr\_fault+0x2a0/0x790
Modules linked in: kmem device\_dax cxl\_mem cxl\_pmem cxl\_port cxl\_pci dax\_hmem dax\_pmem nd\_pmem cxl\_acpi nd\_btt cxl\_core crc32c\_intel nvme virtiofs fuse nvme\_core nfit libnvdimm dm\_multipath scsi\_dh\_rdac scsi\_dh\_emc s
mirror dm\_region\_hash dm\_log dm\_mod
CPU: 1 PID: 14045 Comm: daxctl Not tainted 6.10.0-rc2-lizhijian+ \#492
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014
RIP: 0010:do\_user\_addr\_fault+0x2a0/0x790
Code: 48 8b 00 a8 04 0f 84 b5 fe ff ff e9 1c ff ff ff 4c 89 e9 4c 89 e2 be 01 00 00 00 bf 02 00 00 00 e8 b5 ef 24 00 e9 42 fe ff ff \<0f\> 0b 48 83 c4 08 4c 89 ea 48 89 ee 4c 89 e7 5b 5d 41 5c 41 5d 41
RSP: 0000:ffffc90000a575f0 EFLAGS: 00010046
RAX: ffff88800c303600 RBX: 0000000000000000 RCX: 0000000000000000
RDX: 0000000000001000 RSI: ffffffff82504162 RDI: ffffffff824b2c36
RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000000 R12: ffffc90000a57658
R13: 0000000000001000 R14: ffff88800bc2e040 R15: 0000000000000000
FS:  00007f51cb57d880(0000) GS:ffff88807fd00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000000001000 CR3: 00000000072e2004 CR4: 00000000001706f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 \<TASK\>
 ? \_\_warn+0x8d/0x190
 ? do\_user\_addr\_fault+0x2a0/0x790
 ? report\_bug+0x1c3/0x1d0
 ? handle\_bug+0x3c/0x70
 ? exc\_invalid\_op+0x14/0x70
 ? asm\_exc\_invalid\_op+0x16/0x20
 ? do\_user\_addr\_fault+0x2a0/0x790
 ? exc\_page\_fault+0x31/0x200
 exc\_page\_fault+0x68/0x200
\<...snip...\>
BUG: unable to handle page fault for address: 0000000000001000
 \#PF: supervisor read access in kernel mode
 \#PF: error\_code(0x0000) - not-present page
 PGD 800000000ad92067 P4D 800000000ad92067 PUD 7677067 PMD 0
 Oops: Oops: 0000 \[\#1\] PREEMPT SMP PTI
 ---\[ end trace 0000000000000000 \]---
 BUG: unable to handle page fault for address: 0000000000001000
 \#PF: supervisor read access in kernel mode
 \#PF: error\_code(0x0000) - not-present page
 PGD 800000000ad92067 P4D 800000000ad92067 PUD 7677067 PMD 0
 Oops: Oops: 0000 \[\#1\] PREEMPT SMP PTI
 CPU: 1 PID: 14045 Comm: daxctl Kdump: loaded Tainted: G        W          6.10.0-rc2-lizhijian+ \#492
 Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014
 RIP: 0010:dentry\_name+0x1f4/0x440
\<...snip...\>
? dentry\_name+0x2fa/0x440
vsnprintf+0x1f3/0x4f0
vprintk\_store+0x23a/0x540
vprintk\_emit+0x6d/0x330
\_printk+0x58/0x80
dump\_mapping+0x10b/0x1a0
? \_\_pfx\_free\_object\_rcu+0x10/0x10
\_\_dump\_page+0x26b/0x3e0
? vprintk\_emit+0xe0/0x330
? \_printk+0x58/0x80
? dump\_page+0x17/0x50
dump\_page+0x17/0x50
do\_migrate\_range+0x2f7/0x7f0
? do\_migrate\_range+0x42/0x7f0
? offline\_pages+0x2f4/0x8c0
offline\_pages+0x60a/0x8c0
memory\_subsys\_offline+0x9f/0x1c0
? lockdep\_hardirqs\_on+0x77/0x100
? \_raw\_spin\_unlock\_irqrestore+0x38/0x60
device\_offline+0xe3/0x110
state\_store+0x6e/0xc0
kernfs\_fop\_write\_iter+0x143/0x200
vfs\_write+0x39f/0x560
ksys\_write+0x65/0xf0
do\_syscall\_64+0x62/0x130

Previously, some sanity check have been done in dump\_mapping() before
the print facility parsing '%pd' though, it's still possible to run into
an invalid dentry.d\_name.name.

Since dump\_mapping() only needs to dump the filename only, retrieve it
by itself in a safer way to prevent an unnecessary crash.

Note that either retrieving the filename with '%pd' or
strncpy\_from\_kernel\_nofault(), the filename could be unreliable.

## Affected and fixed versions

- Linux: \>= 1c6fb1d89e73cd3bbfae7c400f1c615272aa435f, \< 1a4159138e718db6199f0abf376ad52f726dcc5c; \>= 1c6fb1d89e73cd3bbfae7c400f1c615272aa435f, \< e0f6ee75f50476607ca82fc7c3711c795ce09b52; \>= 1c6fb1d89e73cd3bbfae7c400f1c615272aa435f, \< f92b8829c6e75632de4e2b9f70e7a7e6c5c2ba98; \>= 1c6fb1d89e73cd3bbfae7c400f1c615272aa435f, \< ef921bc72328b577cb45772ff7921cba4773b74a; \>= 1c6fb1d89e73cd3bbfae7c400f1c615272aa435f, \< 7f7b850689ac06a62befe26e1fd1806799e7f152 (cvelist)
- Linux: 5.0 (cvelist)

## Mitigation

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

Details: https://flawdb.com/CVE-2024-49934.md
Affected: Linux >= 1c6fb1d89e73cd3bbfae7c400f1c615272aa435f, < 1a4159138e718db6199f0abf376ad52f726dcc5c; >= 1c6fb1d89e73cd3bbfae7c400f1c615272aa435f, < e0f6ee75f50476607ca82fc7c3711c795ce09b52; >= 1c6fb1d89e73cd3bbfae7c400f1c615272aa435f, < f92b8829c6e75632de4e2b9f70e7a7e6c5c2ba98; >= 1c6fb1d89e73cd3bbfae7c4…
Fixed in: Linux 1a4159138e718db6199f0abf376ad52f726dcc5c, Linux 7f7b850689ac06a62befe26e1fd1806799e7f152

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

There is no confirmed exploitation: CVE-2024-49934 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-49934?

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

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

Linux \>= 1c6fb1d89e73cd3bbfae7c400f1c615272aa435f, \< 1a4159138e718db6199f0abf376ad52f726dcc5c; \>= 1c6fb1d89e73cd3bbfae7c400f1c615272aa435f, \< e0f6ee75f50476607ca82fc7c3711c795ce09b52; \>= 1c6fb1d89e73cd3bbfae7c400f1c615272aa435f, \< f92b8829c6e75632de4e2b9f70e7a7e6c5c2ba98; \>= 1c6fb1d89e73cd3bbfae7c400f1c615272aa435f, \< ef921bc72328b577cb45772ff7921cba4773b74a; \>= 1c6fb1d89e73cd3bbfae7c400f1c615272aa435f, \< 7f7b850689ac06a62befe26e1fd1806799e7f152; Linux 5.0.

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

Yes. Fixed in Linux 1a4159138e718db6199f0abf376ad52f726dcc5c, Linux 7f7b850689ac06a62befe26e1fd1806799e7f152. Upgrade Linux to 7f7b850689ac06a62befe26e1fd1806799e7f152 or later.

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

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/f92b8829c6e75632de4e2b9f70e7a7e6c5c2ba98>
- patch: <https://git.kernel.org/stable/c/ef921bc72328b577cb45772ff7921cba4773b74a>
- patch: <https://git.kernel.org/stable/c/7f7b850689ac06a62befe26e1fd1806799e7f152>
- other: <https://git.kernel.org/stable/c/1a4159138e718db6199f0abf376ad52f726dcc5c>
- other: <https://git.kernel.org/stable/c/e0f6ee75f50476607ca82fc7c3711c795ce09b52>
- other: <https://lists.debian.org/debian-lts-announce/2025/03/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-49934>

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