# CVE-2026-46058: media: amphion: Fix race between m2m job\_abort and device\_run

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

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; 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.13% (percentile 1, 2026-11-26)
- **CWE:** CWE-362
- **Published:** 2026-05-27T12:57:17.853Z
- **Modified:** 2026-08-05T12:29:25.621Z

## Who should check

- Anyone running Linux \>= 3cd084519c6f91cbef9d604bcf26844fa81d4922, \< 516467052fdfc6a13eadc70d43420ae57436bf3c; \>= 3cd084519c6f91cbef9d604bcf26844fa81d4922, \< 42dc622776f3ce1a6c31b13bdc686f7295e3b323; \>= 3cd084519c6f91cbef9d604bcf26844fa81d4922, \< da4f46c5cf1d26e6b09418ad453e152f2e75a02c; \>= 3cd084519c6f91cbef9d604bcf26844fa81d4922, \< fdc150dac1adb9a98be9d6956cff0348838b024a; \>= 3cd084519c6f91cbef9d604bcf26844fa81d4922, \< 6be2cb75bc1300080cfc8051579f22efae9401f7; \>= 3cd084519c6f91cbef9d604bcf26844fa81d4922, \< 8cd35ceadcfc8c5da2eb7f7ce24525ce9d4ee62e
- Anyone running Linux 5.18

## Description

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

media: amphion: Fix race between m2m job\_abort and device\_run

Fix kernel panic caused by race condition where v4l2\_m2m\_ctx\_release()
frees m2m\_ctx while v4l2\_m2m\_try\_run() is about to call device\_run
with the same context.

Race sequence:
  v4l2\_m2m\_try\_run():           v4l2\_m2m\_ctx\_release():
    lock/unlock                   v4l2\_m2m\_cancel\_job()
                                    job\_abort()
                                      v4l2\_m2m\_job\_finish()
                                  kfree(m2m\_ctx)  \<- frees ctx
    device\_run()  \<- use-after-free crash at 0x538

Crash trace:
  Unable to handle kernel read from unreadable memory at virtual address
  0000000000000538
  v4l2\_m2m\_try\_run+0x78/0x138
  v4l2\_m2m\_device\_run\_work+0x14/0x20

The amphion vpu driver does not rely on the m2m framework's device\_run
callback to perform encode/decode operations.

Fix the race by preventing m2m framework job scheduling entirely:
- Add job\_ready callback returning 0 (no jobs ready for m2m framework)
- Remove job\_abort callback to avoid the race condition

## Affected and fixed versions

- Linux: \>= 3cd084519c6f91cbef9d604bcf26844fa81d4922, \< 516467052fdfc6a13eadc70d43420ae57436bf3c; \>= 3cd084519c6f91cbef9d604bcf26844fa81d4922, \< 42dc622776f3ce1a6c31b13bdc686f7295e3b323; \>= 3cd084519c6f91cbef9d604bcf26844fa81d4922, \< da4f46c5cf1d26e6b09418ad453e152f2e75a02c; \>= 3cd084519c6f91cbef9d604bcf26844fa81d4922, \< fdc150dac1adb9a98be9d6956cff0348838b024a; \>= 3cd084519c6f91cbef9d604bcf26844fa81d4922, \< 6be2cb75bc1300080cfc8051579f22efae9401f7; \>= 3cd084519c6f91cbef9d604bcf26844fa81d4922, \< 8cd35ceadcfc8c5da2eb7f7ce24525ce9d4ee62e (cvelist)
- Linux: 5.18 (cvelist)

## Mitigation

- Upgrade Linux to 8cd35ceadcfc8c5da2eb7f7ce24525ce9d4ee62e or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2026-46058.md
Affected: Linux >= 3cd084519c6f91cbef9d604bcf26844fa81d4922, < 516467052fdfc6a13eadc70d43420ae57436bf3c; >= 3cd084519c6f91cbef9d604bcf26844fa81d4922, < 42dc622776f3ce1a6c31b13bdc686f7295e3b323; >= 3cd084519c6f91cbef9d604bcf26844fa81d4922, < da4f46c5cf1d26e6b09418ad453e152f2e75a02c; >= 3cd084519c6f91cbef9d604…
Fixed in: Linux 516467052fdfc6a13eadc70d43420ae57436bf3c, Linux 42dc622776f3ce1a6c31b13bdc686f7295e3b323, Linux 6be2cb75bc1300080cfc8051579f22efae9401f7, Linux 8cd35ceadcfc8c5da2eb7f7ce24525ce9d4ee62e

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-2026-46058 being exploited?

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

### How serious is CVE-2026-46058?

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

### Which versions are affected by CVE-2026-46058?

Linux \>= 3cd084519c6f91cbef9d604bcf26844fa81d4922, \< 516467052fdfc6a13eadc70d43420ae57436bf3c; \>= 3cd084519c6f91cbef9d604bcf26844fa81d4922, \< 42dc622776f3ce1a6c31b13bdc686f7295e3b323; \>= 3cd084519c6f91cbef9d604bcf26844fa81d4922, \< da4f46c5cf1d26e6b09418ad453e152f2e75a02c; \>= 3cd084519c6f91cbef9d604bcf26844fa81d4922, \< fdc150dac1adb9a98be9d6956cff0348838b024a; \>= 3cd084519c6f91cbef9d604bcf26844fa81d4922, \< 6be2cb75bc1300080cfc8051579f22efae9401f7; \>= 3cd084519c6f91cbef9d604bcf26844fa81d4922, \< 8cd35ceadcfc8c5da2eb7f7ce24525ce9d4ee62e; Linux 5.18.

### Is there a fix for CVE-2026-46058?

Yes. Fixed in Linux 516467052fdfc6a13eadc70d43420ae57436bf3c, Linux 42dc622776f3ce1a6c31b13bdc686f7295e3b323, Linux 6be2cb75bc1300080cfc8051579f22efae9401f7, Linux 8cd35ceadcfc8c5da2eb7f7ce24525ce9d4ee62e. Upgrade Linux to 8cd35ceadcfc8c5da2eb7f7ce24525ce9d4ee62e or later.

### How do I check if I'm affected by CVE-2026-46058?

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/516467052fdfc6a13eadc70d43420ae57436bf3c>
- patch: <https://git.kernel.org/stable/c/42dc622776f3ce1a6c31b13bdc686f7295e3b323>
- patch: <https://git.kernel.org/stable/c/da4f46c5cf1d26e6b09418ad453e152f2e75a02c>
- patch: <https://git.kernel.org/stable/c/fdc150dac1adb9a98be9d6956cff0348838b024a>
- patch: <https://git.kernel.org/stable/c/6be2cb75bc1300080cfc8051579f22efae9401f7>
- patch: <https://git.kernel.org/stable/c/8cd35ceadcfc8c5da2eb7f7ce24525ce9d4ee62e>

## 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-2026-46058>

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