CVE-2026-46058

Source
https://cve.org/CVERecord?id=CVE-2026-46058
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2026-46058.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2026-46058
Downstream
Related
Published
2026-05-27T12:57:17.853Z
Modified
2026-06-18T03:55:34.841198378Z
Severity
  • 7.8 (High) CVSS_V3 - CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
Summary
media: amphion: Fix race between m2m job_abort and device_run
Details

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

media: amphion: Fix race between m2m jobabort and devicerun

Fix kernel panic caused by race condition where v4l2m2mctxrelease() frees m2mctx while v4l2m2mtryrun() is about to call devicerun with the same context.

Race sequence: v4l2m2mtryrun(): v4l2m2mctxrelease(): lock/unlock v4l2m2mcanceljob() jobabort() v4l2m2mjobfinish() kfree(m2mctx) <- frees ctx device_run() <- use-after-free crash at 0x538

Crash trace: Unable to handle kernel read from unreadable memory at virtual address 0000000000000538 v4l2m2mtryrun+0x78/0x138 v4l2m2mdevicerun_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 jobready callback returning 0 (no jobs ready for m2m framework) - Remove jobabort callback to avoid the race condition

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/46xxx/CVE-2026-46058.json",
    "cna_assigner": "Linux"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
3cd084519c6f91cbef9d604bcf26844fa81d4922
Fixed
516467052fdfc6a13eadc70d43420ae57436bf3c
Fixed
42dc622776f3ce1a6c31b13bdc686f7295e3b323
Fixed
da4f46c5cf1d26e6b09418ad453e152f2e75a02c
Fixed
fdc150dac1adb9a98be9d6956cff0348838b024a
Fixed
6be2cb75bc1300080cfc8051579f22efae9401f7
Fixed
8cd35ceadcfc8c5da2eb7f7ce24525ce9d4ee62e

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2026-46058.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
5.18.0
Fixed
6.1.175
Type
ECOSYSTEM
Events
Introduced
6.2.0
Fixed
6.6.140
Type
ECOSYSTEM
Events
Introduced
6.7.0
Fixed
6.12.86
Type
ECOSYSTEM
Events
Introduced
6.13.0
Fixed
6.18.27
Type
ECOSYSTEM
Events
Introduced
6.19.0
Fixed
7.0.4

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2026-46058.json"