# CVE-2023-54058: firmware: arm\_ffa: Check if ffa\_driver remove is present before executing

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

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **EPSS:** 0.28% (percentile 13, 2026-11-26)
- **Published:** 2025-12-24T12:23:05.899Z
- **Modified:** 2026-06-17T06:46:43.647Z

## Who should check

- Anyone running Linux \>= 244f5d597e1ea519c2085fbd9819458688775e42, \< 6a26c62625c59b8dd7f52c518cb4f60a63470a0e; \>= 244f5d597e1ea519c2085fbd9819458688775e42, \< ad73dc7263ea90302d6c7eeb7e9f7cbcfa0b0617; \>= 244f5d597e1ea519c2085fbd9819458688775e42, \< 48399c297c46b4c8e77ebcf071bb586a42d0ca4e; \>= 244f5d597e1ea519c2085fbd9819458688775e42, \< b71b55248a580e9c9befc4ae060539f1f8e477da; 06560ba731e2775441c6dc9f0bf39f9f3606fbb7; \>= 5.14.14, \< 5.15
- Anyone running Linux 5.15

## Description

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

firmware: arm\_ffa: Check if ffa\_driver remove is present before executing

Currently ffa\_drv-\>remove() is called unconditionally from
ffa\_device\_remove(). Since the driver registration doesn't check for it
and allows it to be registered without .remove callback, we need to check
for the presence of it before executing it from ffa\_device\_remove() to
above a NULL pointer dereference like the one below:

  \| Unable to handle kernel NULL pointer dereference at virtual address 0000000000000000
  \| Mem abort info:
  \|   ESR = 0x0000000086000004
  \|   EC = 0x21: IABT (current EL), IL = 32 bits
  \|   SET = 0, FnV = 0
  \|   EA = 0, S1PTW = 0
  \|   FSC = 0x04: level 0 translation fault
  \| user pgtable: 4k pages, 48-bit VAs, pgdp=0000000881cc8000
  \| \[0000000000000000\] pgd=0000000000000000, p4d=0000000000000000
  \| Internal error: Oops: 0000000086000004 \[\#1\] PREEMPT SMP
  \| CPU: 3 PID: 130 Comm: rmmod Not tainted 6.3.0-rc7 \#6
  \| Hardware name: FVP Base RevC (DT)
  \| pstate: 63402809 (nZCv daif +PAN -UAO +TCO +DIT -SSBS BTYPE=-c)
  \| pc : 0x0
  \| lr : ffa\_device\_remove+0x20/0x2c
  \| Call trace:
  \|  0x0
  \|  device\_release\_driver\_internal+0x16c/0x260
  \|  driver\_detach+0x90/0xd0
  \|  bus\_remove\_driver+0xdc/0x11c
  \|  driver\_unregister+0x30/0x54
  \|  ffa\_driver\_unregister+0x14/0x20
  \|  cleanup\_module+0x18/0xeec
  \|  \_\_arm64\_sys\_delete\_module+0x234/0x378
  \|  invoke\_syscall+0x40/0x108
  \|  el0\_svc\_common+0xb4/0xf0
  \|  do\_el0\_svc+0x30/0xa4
  \|  el0\_svc+0x2c/0x7c
  \|  el0t\_64\_sync\_handler+0x84/0xf0
  \|  el0t\_64\_sync+0x190/0x194

## Affected and fixed versions

- Linux: \>= 244f5d597e1ea519c2085fbd9819458688775e42, \< 6a26c62625c59b8dd7f52c518cb4f60a63470a0e; \>= 244f5d597e1ea519c2085fbd9819458688775e42, \< ad73dc7263ea90302d6c7eeb7e9f7cbcfa0b0617; \>= 244f5d597e1ea519c2085fbd9819458688775e42, \< 48399c297c46b4c8e77ebcf071bb586a42d0ca4e; \>= 244f5d597e1ea519c2085fbd9819458688775e42, \< b71b55248a580e9c9befc4ae060539f1f8e477da; 06560ba731e2775441c6dc9f0bf39f9f3606fbb7; \>= 5.14.14, \< 5.15 (cvelist)
- Linux: 5.15 (cvelist)

## Mitigation

- Upgrade Linux to 5.15 or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2023-54058.md
Affected: Linux >= 244f5d597e1ea519c2085fbd9819458688775e42, < 6a26c62625c59b8dd7f52c518cb4f60a63470a0e; >= 244f5d597e1ea519c2085fbd9819458688775e42, < ad73dc7263ea90302d6c7eeb7e9f7cbcfa0b0617; >= 244f5d597e1ea519c2085fbd9819458688775e42, < 48399c297c46b4c8e77ebcf071bb586a42d0ca4e; >= 244f5d597e1ea519c2085fb…
Fixed in: Linux 6a26c62625c59b8dd7f52c518cb4f60a63470a0e, Linux 48399c297c46b4c8e77ebcf071bb586a42d0ca4e, Linux 5.15

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-2023-54058 being exploited?

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

### How serious is CVE-2023-54058?

It has no CVSS score yet. Unknown.

### Which versions are affected by CVE-2023-54058?

Linux \>= 244f5d597e1ea519c2085fbd9819458688775e42, \< 6a26c62625c59b8dd7f52c518cb4f60a63470a0e; \>= 244f5d597e1ea519c2085fbd9819458688775e42, \< ad73dc7263ea90302d6c7eeb7e9f7cbcfa0b0617; \>= 244f5d597e1ea519c2085fbd9819458688775e42, \< 48399c297c46b4c8e77ebcf071bb586a42d0ca4e; \>= 244f5d597e1ea519c2085fbd9819458688775e42, \< b71b55248a580e9c9befc4ae060539f1f8e477da; 06560ba731e2775441c6dc9f0bf39f9f3606fbb7; \>= 5.14.14, \< 5.15; Linux 5.15.

### Is there a fix for CVE-2023-54058?

Yes. Fixed in Linux 6a26c62625c59b8dd7f52c518cb4f60a63470a0e, Linux 48399c297c46b4c8e77ebcf071bb586a42d0ca4e, Linux 5.15. Upgrade Linux to 5.15 or later.

### How do I check if I'm affected by CVE-2023-54058?

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

- other: <https://git.kernel.org/stable/c/6a26c62625c59b8dd7f52c518cb4f60a63470a0e>
- other: <https://git.kernel.org/stable/c/ad73dc7263ea90302d6c7eeb7e9f7cbcfa0b0617>
- other: <https://git.kernel.org/stable/c/48399c297c46b4c8e77ebcf071bb586a42d0ca4e>
- other: <https://git.kernel.org/stable/c/b71b55248a580e9c9befc4ae060539f1f8e477da>

## 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-2023-54058>

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