# CVE-2024-58054: staging: media: max96712: fix kernel oops when removing module

> 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, NVD) `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.30% (percentile 15, 2026-11-28)
- **Published:** 2025-03-06T15:53:58.243Z
- **Modified:** 2026-06-17T08:14:31.327Z

## Who should check

- Anyone running Linux \>= 5814f32fef137e34577c4f053272c53e7ca33cd9, \< 3311c5395e7322298b659b8addc704b39fb3a59c; \>= 5814f32fef137e34577c4f053272c53e7ca33cd9, \< dfde3d63afbaae664c4d36e53cfb4045d5374561; \>= 5814f32fef137e34577c4f053272c53e7ca33cd9, \< 278a98f6d8a7bbe1110433b057333536e4490edf; \>= 5814f32fef137e34577c4f053272c53e7ca33cd9, \< 1556b9149b81cc549c13f5e56e81e89404d8a666; \>= 5814f32fef137e34577c4f053272c53e7ca33cd9, \< ee1b5046d5cd892a0754ab982aeaaad3702083a5
- Anyone running Linux 5.17

## Description

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

staging: media: max96712: fix kernel oops when removing module

The following kernel oops is thrown when trying to remove the max96712
module:

Unable to handle kernel paging request at virtual address 00007375746174db
Mem abort info:
  ESR = 0x0000000096000004
  EC = 0x25: DABT (current EL), IL = 32 bits
  SET = 0, FnV = 0
  EA = 0, S1PTW = 0
  FSC = 0x04: level 0 translation fault
Data abort info:
  ISV = 0, ISS = 0x00000004, ISS2 = 0x00000000
  CM = 0, WnR = 0, TnD = 0, TagAccess = 0
  GCS = 0, Overlay = 0, DirtyBit = 0, Xs = 0
user pgtable: 4k pages, 48-bit VAs, pgdp=000000010af89000
\[00007375746174db\] pgd=0000000000000000, p4d=0000000000000000
Internal error: Oops: 0000000096000004 \[\#1\] PREEMPT SMP
Modules linked in: crct10dif\_ce polyval\_ce mxc\_jpeg\_encdec flexcan
    snd\_soc\_fsl\_sai snd\_soc\_fsl\_asoc\_card snd\_soc\_fsl\_micfil dwc\_mipi\_csi2
    imx\_csi\_formatter polyval\_generic v4l2\_jpeg imx\_pcm\_dma can\_dev
    snd\_soc\_imx\_audmux snd\_soc\_wm8962 snd\_soc\_imx\_card snd\_soc\_fsl\_utils
    max96712(C-) rpmsg\_ctrl rpmsg\_char pwm\_fan fuse
    \[last unloaded: imx8\_isi\]
CPU: 0 UID: 0 PID: 754 Comm: rmmod
	    Tainted: G         C    6.12.0-rc6-06364-g327fec852c31 \#17
Tainted: \[C\]=CRAP
Hardware name: NXP i.MX95 19X19 board (DT)
pstate: 60400009 (nZCv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
pc : led\_put+0x1c/0x40
lr : v4l2\_subdev\_put\_privacy\_led+0x48/0x58
sp : ffff80008699bbb0
x29: ffff80008699bbb0 x28: ffff00008ac233c0 x27: 0000000000000000
x26: 0000000000000000 x25: 0000000000000000 x24: 0000000000000000
x23: ffff000080cf1170 x22: ffff00008b53bd00 x21: ffff8000822ad1c8
x20: ffff000080ff5c00 x19: ffff00008b53be40 x18: 0000000000000000
x17: 0000000000000000 x16: 0000000000000000 x15: 0000000000000000
x14: 0000000000000004 x13: ffff0000800f8010 x12: 0000000000000000
x11: ffff000082acf5c0 x10: ffff000082acf478 x9 : ffff0000800f8010
x8 : 0101010101010101 x7 : 7f7f7f7f7f7f7f7f x6 : fefefeff6364626d
x5 : 8080808000000000 x4 : 0000000000000020 x3 : 00000000553a3dc1
x2 : ffff00008ac233c0 x1 : ffff00008ac233c0 x0 : ff00737574617473
Call trace:
 led\_put+0x1c/0x40
 v4l2\_subdev\_put\_privacy\_led+0x48/0x58
 v4l2\_async\_unregister\_subdev+0x2c/0x1a4
 max96712\_remove+0x1c/0x38 \[max96712\]
 i2c\_device\_remove+0x2c/0x9c
 device\_remove+0x4c/0x80
 device\_release\_driver\_internal+0x1cc/0x228
 driver\_detach+0x4c/0x98
 bus\_remove\_driver+0x6c/0xbc
 driver\_unregister+0x30/0x60
 i2c\_del\_driver+0x54/0x64
 max96712\_i2c\_driver\_exit+0x18/0x1d0 \[max96712\]
 \_\_arm64\_sys\_delete\_module+0x1a4/0x290
 invoke\_syscall+0x48/0x10c
 el0\_svc\_common.constprop.0+0xc0/0xe0
 do\_el0\_svc+0x1c/0x28
 el0\_svc+0x34/0xd8
 el0t\_64\_sync\_handler+0x120/0x12c
 el0t\_64\_sync+0x190/0x194
Code: f9000bf3 aa0003f3 f9402800 f9402000 (f9403400)
---\[ end trace 0000000000000000 \]---

This happens because in v4l2\_i2c\_subdev\_init(), the i2c\_set\_cliendata()
is called again and the data is overwritten to point to sd, instead of
priv. So, in remove(), the wrong pointer is passed to
v4l2\_async\_unregister\_subdev(), leading to a crash.

## Affected and fixed versions

- Linux: \>= 5814f32fef137e34577c4f053272c53e7ca33cd9, \< 3311c5395e7322298b659b8addc704b39fb3a59c; \>= 5814f32fef137e34577c4f053272c53e7ca33cd9, \< dfde3d63afbaae664c4d36e53cfb4045d5374561; \>= 5814f32fef137e34577c4f053272c53e7ca33cd9, \< 278a98f6d8a7bbe1110433b057333536e4490edf; \>= 5814f32fef137e34577c4f053272c53e7ca33cd9, \< 1556b9149b81cc549c13f5e56e81e89404d8a666; \>= 5814f32fef137e34577c4f053272c53e7ca33cd9, \< ee1b5046d5cd892a0754ab982aeaaad3702083a5 (cvelist)
- Linux: 5.17 (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-2024-58054. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-58054.md
Affected: Linux >= 5814f32fef137e34577c4f053272c53e7ca33cd9, < 3311c5395e7322298b659b8addc704b39fb3a59c; >= 5814f32fef137e34577c4f053272c53e7ca33cd9, < dfde3d63afbaae664c4d36e53cfb4045d5374561; >= 5814f32fef137e34577c4f053272c53e7ca33cd9, < 278a98f6d8a7bbe1110433b057333536e4490edf; >= 5814f32fef137e34577c4f0…
Fixed in: Linux 3311c5395e7322298b659b8addc704b39fb3a59c, Linux 278a98f6d8a7bbe1110433b057333536e4490edf, Linux 1556b9149b81cc549c13f5e56e81e89404d8a666

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

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

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

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

Linux \>= 5814f32fef137e34577c4f053272c53e7ca33cd9, \< 3311c5395e7322298b659b8addc704b39fb3a59c; \>= 5814f32fef137e34577c4f053272c53e7ca33cd9, \< dfde3d63afbaae664c4d36e53cfb4045d5374561; \>= 5814f32fef137e34577c4f053272c53e7ca33cd9, \< 278a98f6d8a7bbe1110433b057333536e4490edf; \>= 5814f32fef137e34577c4f053272c53e7ca33cd9, \< 1556b9149b81cc549c13f5e56e81e89404d8a666; \>= 5814f32fef137e34577c4f053272c53e7ca33cd9, \< ee1b5046d5cd892a0754ab982aeaaad3702083a5; Linux 5.17.

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

Yes. Fixed in Linux 3311c5395e7322298b659b8addc704b39fb3a59c, Linux 278a98f6d8a7bbe1110433b057333536e4490edf, Linux 1556b9149b81cc549c13f5e56e81e89404d8a666. No fix listed yet: follow the vendor advisory.

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

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/3311c5395e7322298b659b8addc704b39fb3a59c>
- patch: <https://git.kernel.org/stable/c/dfde3d63afbaae664c4d36e53cfb4045d5374561>
- patch: <https://git.kernel.org/stable/c/278a98f6d8a7bbe1110433b057333536e4490edf>
- patch: <https://git.kernel.org/stable/c/1556b9149b81cc549c13f5e56e81e89404d8a666>
- patch: <https://git.kernel.org/stable/c/ee1b5046d5cd892a0754ab982aeaaad3702083a5>
- other: <https://lists.debian.org/debian-lts-announce/2025/03/msg00028.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-58054>

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