# CVE-2024-47688: driver core: Fix a potential null-ptr-deref in module\_add\_driver()

> 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.30% (percentile 15, 2026-11-28)
- **CWE:** CWE-476
- **Published:** 2024-10-21T11:53:28.526Z
- **Modified:** 2026-06-17T07:57:32.633Z

## Who should check

- Anyone running Linux \>= 28f5a08600d0ea6831629d450193c4045094e729, \< b8e45b910525704010d10c9dcbf2abf3005aa97c; \>= 85d2b0aa170351380be39fe4ff7973df1427fe76, \< 4b5d48b7a29cc6d508121a4b4e0c97a891e5273c; \>= 85d2b0aa170351380be39fe4ff7973df1427fe76, \< dcb9d581dee4c23f2378b6650511ece80dda4e2f; \>= 85d2b0aa170351380be39fe4ff7973df1427fe76, \< 18ec12c97b39ff6aa15beb8d2b25d15cd44b87d8; 51dacb1b0467b616463a334cbcd048f5710ba2aa; \>= 6.6.33, \< 6.6.54; \>= 6.9.4, \< 6.10
- Anyone running Linux 6.10

## Description

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

driver core: Fix a potential null-ptr-deref in module\_add\_driver()

Inject fault while probing of-fpga-region, if kasprintf() fails in
module\_add\_driver(), the second sysfs\_remove\_link() in exit path will cause
null-ptr-deref as below because kernfs\_name\_hash() will call strlen() with
NULL driver\_name.

Fix it by releasing resources based on the exit path sequence.

	 KASAN: null-ptr-deref in range \[0x0000000000000000-0x0000000000000007\]
	 Mem abort info:
	   ESR = 0x0000000096000005
	   EC = 0x25: DABT (current EL), IL = 32 bits
	   SET = 0, FnV = 0
	   EA = 0, S1PTW = 0
	   FSC = 0x05: level 1 translation fault
	 Data abort info:
	   ISV = 0, ISS = 0x00000005, ISS2 = 0x00000000
	   CM = 0, WnR = 0, TnD = 0, TagAccess = 0
	   GCS = 0, Overlay = 0, DirtyBit = 0, Xs = 0
	 \[dfffffc000000000\] address between user and kernel address ranges
	 Internal error: Oops: 0000000096000005 \[\#1\] PREEMPT SMP
	 Dumping ftrace buffer:
	    (ftrace buffer empty)
	 Modules linked in: of\_fpga\_region(+) fpga\_region fpga\_bridge cfg80211 rfkill 8021q garp mrp stp llc ipv6 \[last unloaded: of\_fpga\_region\]
	 CPU: 2 UID: 0 PID: 2036 Comm: modprobe Not tainted 6.11.0-rc2-g6a0e38264012 \#295
	 Hardware name: linux,dummy-virt (DT)
	 pstate: 60000005 (nZCv daif -PAN -UAO -TCO -DIT -SSBS BTYPE=--)
	 pc : strlen+0x24/0xb0
	 lr : kernfs\_name\_hash+0x1c/0xc4
	 sp : ffffffc081f97380
	 x29: ffffffc081f97380 x28: ffffffc081f97b90 x27: ffffff80c821c2a0
	 x26: ffffffedac0be418 x25: 0000000000000000 x24: ffffff80c09d2000
	 x23: 0000000000000000 x22: 0000000000000000 x21: 0000000000000000
	 x20: 0000000000000000 x19: 0000000000000000 x18: 0000000000001840
	 x17: 0000000000000000 x16: 0000000000000000 x15: 1ffffff8103f2e42
	 x14: 00000000f1f1f1f1 x13: 0000000000000004 x12: ffffffb01812d61d
	 x11: 1ffffff01812d61c x10: ffffffb01812d61c x9 : dfffffc000000000
	 x8 : 0000004fe7ed29e4 x7 : ffffff80c096b0e7 x6 : 0000000000000001
	 x5 : ffffff80c096b0e0 x4 : 1ffffffdb990efa2 x3 : 0000000000000000
	 x2 : 0000000000000000 x1 : dfffffc000000000 x0 : 0000000000000000
	 Call trace:
	  strlen+0x24/0xb0
	  kernfs\_name\_hash+0x1c/0xc4
	  kernfs\_find\_ns+0x118/0x2e8
	  kernfs\_remove\_by\_name\_ns+0x80/0x100
	  sysfs\_remove\_link+0x74/0xa8
	  module\_add\_driver+0x278/0x394
	  bus\_add\_driver+0x1f0/0x43c
	  driver\_register+0xf4/0x3c0
	  \_\_platform\_driver\_register+0x60/0x88
	  of\_fpga\_region\_init+0x20/0x1000 \[of\_fpga\_region\]
	  do\_one\_initcall+0x110/0x788
	  do\_init\_module+0x1dc/0x5c8
	  load\_module+0x3c38/0x4cac
	  init\_module\_from\_file+0xd4/0x128
	  idempotent\_init\_module+0x2cc/0x528
	  \_\_arm64\_sys\_finit\_module+0xac/0x100
	  invoke\_syscall+0x6c/0x258
	  el0\_svc\_common.constprop.0+0x160/0x22c
	  do\_el0\_svc+0x44/0x5c
	  el0\_svc+0x48/0xb8
	  el0t\_64\_sync\_handler+0x13c/0x158
	  el0t\_64\_sync+0x190/0x194
	 Code: f2fbffe1 a90157f4 12000802 aa0003f5 (38e16861)
	 ---\[ end trace 0000000000000000 \]---
	 Kernel panic - not syncing: Oops: Fatal exception

## Affected and fixed versions

- Linux: \>= 28f5a08600d0ea6831629d450193c4045094e729, \< b8e45b910525704010d10c9dcbf2abf3005aa97c; \>= 85d2b0aa170351380be39fe4ff7973df1427fe76, \< 4b5d48b7a29cc6d508121a4b4e0c97a891e5273c; \>= 85d2b0aa170351380be39fe4ff7973df1427fe76, \< dcb9d581dee4c23f2378b6650511ece80dda4e2f; \>= 85d2b0aa170351380be39fe4ff7973df1427fe76, \< 18ec12c97b39ff6aa15beb8d2b25d15cd44b87d8; 51dacb1b0467b616463a334cbcd048f5710ba2aa; \>= 6.6.33, \< 6.6.54; \>= 6.9.4, \< 6.10 (cvelist)
- Linux: 6.10 (cvelist)

## Mitigation

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

Details: https://flawdb.com/CVE-2024-47688.md
Affected: Linux >= 28f5a08600d0ea6831629d450193c4045094e729, < b8e45b910525704010d10c9dcbf2abf3005aa97c; >= 85d2b0aa170351380be39fe4ff7973df1427fe76, < 4b5d48b7a29cc6d508121a4b4e0c97a891e5273c; >= 85d2b0aa170351380be39fe4ff7973df1427fe76, < dcb9d581dee4c23f2378b6650511ece80dda4e2f; >= 85d2b0aa170351380be39fe…
Fixed in: Linux 4b5d48b7a29cc6d508121a4b4e0c97a891e5273c, Linux 18ec12c97b39ff6aa15beb8d2b25d15cd44b87d8, Linux 6.6.54, Linux 6.10

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

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

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

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

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

Linux \>= 28f5a08600d0ea6831629d450193c4045094e729, \< b8e45b910525704010d10c9dcbf2abf3005aa97c; \>= 85d2b0aa170351380be39fe4ff7973df1427fe76, \< 4b5d48b7a29cc6d508121a4b4e0c97a891e5273c; \>= 85d2b0aa170351380be39fe4ff7973df1427fe76, \< dcb9d581dee4c23f2378b6650511ece80dda4e2f; \>= 85d2b0aa170351380be39fe4ff7973df1427fe76, \< 18ec12c97b39ff6aa15beb8d2b25d15cd44b87d8; 51dacb1b0467b616463a334cbcd048f5710ba2aa; \>= 6.6.33, \< 6.6.54; \>= 6.9.4, \< 6.10; Linux 6.10.

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

Yes. Fixed in Linux 4b5d48b7a29cc6d508121a4b4e0c97a891e5273c, Linux 18ec12c97b39ff6aa15beb8d2b25d15cd44b87d8, Linux 6.6.54, Linux 6.10. Upgrade Linux to 6.10 or later.

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

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/b8e45b910525704010d10c9dcbf2abf3005aa97c>
- patch: <https://git.kernel.org/stable/c/4b5d48b7a29cc6d508121a4b4e0c97a891e5273c>
- patch: <https://git.kernel.org/stable/c/dcb9d581dee4c23f2378b6650511ece80dda4e2f>
- patch: <https://git.kernel.org/stable/c/18ec12c97b39ff6aa15beb8d2b25d15cd44b87d8>

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

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