# CVE-2023-54044: spmi: Add a check for remove callback when removing a SPMI driver

> 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.32% (percentile 18, 2026-11-26)
- **Published:** 2025-12-24T12:22:56.072Z
- **Modified:** 2026-06-17T06:46:42.177Z

## Who should check

- Anyone running Linux \>= 5a86bf343976b9c8ab2f240bc866451fa67e5573, \< b95a69214daea4aab1c8bad96571d988a62e2c97; \>= 5a86bf343976b9c8ab2f240bc866451fa67e5573, \< 699949219e35fe29fd42ccf8cd92c989c3d15109; \>= 5a86bf343976b9c8ab2f240bc866451fa67e5573, \< 54dda732225555dc6d660e95793c54a0a44b612c; \>= 5a86bf343976b9c8ab2f240bc866451fa67e5573, \< c45ab3ab9c371c9ac22bbe1217e5abb2e55a3d4b; \>= 5a86bf343976b9c8ab2f240bc866451fa67e5573, \< ee0b6146317a98bfec848d7bde5586beb245a38f; \>= 5a86bf343976b9c8ab2f240bc866451fa67e5573, \< 428cc252701d6864151f3a296ffc23e1e49a7408; \>= 5a86bf343976b9c8ab2f240bc866451fa67e5573, \< af763c29b9e7040fedd0077bca053b101438a3a4; \>= 5a86bf343976b9c8ab2f240bc866451fa67e5573, \< 0f3ef30c1c05502f5de3b73b3715d5994845c1b4; \>= 5a86bf343976b9c8ab2f240bc866451fa67e5573, \< b56eef3e16d888883fefab47425036de80dd38fc
- Anyone running Linux 3.15

## Description

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

spmi: Add a check for remove callback when removing a SPMI driver

When removing a SPMI driver, there can be a crash due to NULL pointer
dereference if it does not have a remove callback defined. This is
one such call trace observed when removing the QCOM SPMI PMIC driver:

 dump\_backtrace.cfi\_jt+0x0/0x8
 dump\_stack\_lvl+0xd8/0x16c
 panic+0x188/0x498
 \_\_cfi\_slowpath+0x0/0x214
 \_\_cfi\_slowpath+0x1dc/0x214
 spmi\_drv\_remove+0x16c/0x1e0
 device\_release\_driver\_internal+0x468/0x79c
 driver\_detach+0x11c/0x1a0
 bus\_remove\_driver+0xc4/0x124
 driver\_unregister+0x58/0x84
 cleanup\_module+0x1c/0xc24 \[qcom\_spmi\_pmic\]
 \_\_do\_sys\_delete\_module+0x3ec/0x53c
 \_\_arm64\_sys\_delete\_module+0x18/0x28
 el0\_svc\_common+0xdc/0x294
 el0\_svc+0x38/0x9c
 el0\_sync\_handler+0x8c/0xf0
 el0\_sync+0x1b4/0x1c0

If a driver has all its resources allocated through devm\_() APIs and
does not need any other explicit cleanup, it would not require a
remove callback to be defined. Hence, add a check for remove callback
presence before calling it when removing a SPMI driver.

## Affected and fixed versions

- Linux: \>= 5a86bf343976b9c8ab2f240bc866451fa67e5573, \< b95a69214daea4aab1c8bad96571d988a62e2c97; \>= 5a86bf343976b9c8ab2f240bc866451fa67e5573, \< 699949219e35fe29fd42ccf8cd92c989c3d15109; \>= 5a86bf343976b9c8ab2f240bc866451fa67e5573, \< 54dda732225555dc6d660e95793c54a0a44b612c; \>= 5a86bf343976b9c8ab2f240bc866451fa67e5573, \< c45ab3ab9c371c9ac22bbe1217e5abb2e55a3d4b; \>= 5a86bf343976b9c8ab2f240bc866451fa67e5573, \< ee0b6146317a98bfec848d7bde5586beb245a38f; \>= 5a86bf343976b9c8ab2f240bc866451fa67e5573, \< 428cc252701d6864151f3a296ffc23e1e49a7408; \>= 5a86bf343976b9c8ab2f240bc866451fa67e5573, \< af763c29b9e7040fedd0077bca053b101438a3a4; \>= 5a86bf343976b9c8ab2f240bc866451fa67e5573, \< 0f3ef30c1c05502f5de3b73b3715d5994845c1b4; \>= 5a86bf343976b9c8ab2f240bc866451fa67e5573, \< b56eef3e16d888883fefab47425036de80dd38fc (cvelist)
- Linux: 3.15 (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-2023-54044. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2023-54044.md
Affected: Linux >= 5a86bf343976b9c8ab2f240bc866451fa67e5573, < b95a69214daea4aab1c8bad96571d988a62e2c97; >= 5a86bf343976b9c8ab2f240bc866451fa67e5573, < 699949219e35fe29fd42ccf8cd92c989c3d15109; >= 5a86bf343976b9c8ab2f240bc866451fa67e5573, < 54dda732225555dc6d660e95793c54a0a44b612c; >= 5a86bf343976b9c8ab2f240…
Fixed in: Linux 699949219e35fe29fd42ccf8cd92c989c3d15109, Linux 54dda732225555dc6d660e95793c54a0a44b612c, Linux 428cc252701d6864151f3a296ffc23e1e49a7408, Linux 0f3ef30c1c05502f5de3b73b3715d5994845c1b4

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

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

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

It has no CVSS score yet. Unknown.

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

Linux \>= 5a86bf343976b9c8ab2f240bc866451fa67e5573, \< b95a69214daea4aab1c8bad96571d988a62e2c97; \>= 5a86bf343976b9c8ab2f240bc866451fa67e5573, \< 699949219e35fe29fd42ccf8cd92c989c3d15109; \>= 5a86bf343976b9c8ab2f240bc866451fa67e5573, \< 54dda732225555dc6d660e95793c54a0a44b612c; \>= 5a86bf343976b9c8ab2f240bc866451fa67e5573, \< c45ab3ab9c371c9ac22bbe1217e5abb2e55a3d4b; \>= 5a86bf343976b9c8ab2f240bc866451fa67e5573, \< ee0b6146317a98bfec848d7bde5586beb245a38f; \>= 5a86bf343976b9c8ab2f240bc866451fa67e5573, \< 428cc252701d6864151f3a296ffc23e1e49a7408; \>= 5a86bf343976b9c8ab2f240bc866451fa67e5573, \< af763c29b9e7040fedd0077bca053b101438a3a4; \>= 5a86bf343976b9c8ab2f240bc866451fa67e5573, \< 0f3ef30c1c05502f5de3b73b3715d5994845c1b4; \>= 5a86bf343976b9c8ab2f240bc866451fa67e5573, \< b56eef3e16d888883fefab47425036de80dd38fc; Linux 3.15.

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

Yes. Fixed in Linux 699949219e35fe29fd42ccf8cd92c989c3d15109, Linux 54dda732225555dc6d660e95793c54a0a44b612c, Linux 428cc252701d6864151f3a296ffc23e1e49a7408, Linux 0f3ef30c1c05502f5de3b73b3715d5994845c1b4. No fix listed yet: follow the vendor advisory.

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

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/b95a69214daea4aab1c8bad96571d988a62e2c97>
- other: <https://git.kernel.org/stable/c/699949219e35fe29fd42ccf8cd92c989c3d15109>
- other: <https://git.kernel.org/stable/c/54dda732225555dc6d660e95793c54a0a44b612c>
- other: <https://git.kernel.org/stable/c/c45ab3ab9c371c9ac22bbe1217e5abb2e55a3d4b>
- other: <https://git.kernel.org/stable/c/ee0b6146317a98bfec848d7bde5586beb245a38f>
- other: <https://git.kernel.org/stable/c/428cc252701d6864151f3a296ffc23e1e49a7408>
- other: <https://git.kernel.org/stable/c/af763c29b9e7040fedd0077bca053b101438a3a4>
- other: <https://git.kernel.org/stable/c/0f3ef30c1c05502f5de3b73b3715d5994845c1b4>
- other: <https://git.kernel.org/stable/c/b56eef3e16d888883fefab47425036de80dd38fc>

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

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