# CVE-2026-99468: media: imx-jpeg: cancel timeout worker when streaming stops

- **Severity:** HIGH 7.0
- **CVSS:** 7.0 (v3.1, CNA) `CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: High; 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.15% (percentile 2, 2026-11-28)
- **Published:** 2026-11-19T14:42:54.426Z
- **Modified:** 2026-11-23T08:17:50.400Z

## Who should check

- Anyone running Linux \>= 1f3367fa4210f37417cd55622b3872ababd2f06d, \< e5127281b5869ee8279b7790d059180476daeb62; \>= cfed9632ca8e8bdf0128745ae2400b72c4292886, \< 699777bac0c3a7c33bd63b2536d1ab5562392f24; \>= cfed9632ca8e8bdf0128745ae2400b72c4292886, \< 77e1c41d65a9f3cd22d73d0ec1f33cf6cd37b341; \>= cfed9632ca8e8bdf0128745ae2400b72c4292886, \< 49a0623994a10d3d333d48c304f89d816495f332; \>= cfed9632ca8e8bdf0128745ae2400b72c4292886, \< 9e393784a902bb4eb00a21e46d389a32c7ea61b0; \>= cfed9632ca8e8bdf0128745ae2400b72c4292886, \< 78fdfbf117c409273eecbfa7a528ef42358a0e38; \>= 6.1.143, \< 6.1.193
- Anyone running Linux 6.2

## Description

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

media: imx-jpeg: cancel timeout worker when streaming stops

Each per-fd context ctx owns a delayed\_work (ctx-\>task\_timer, callback
mxc\_jpeg\_device\_run\_timeout) armed via schedule\_delayed\_work() at the end
of mxc\_jpeg\_device\_run() to recover a stalled encode/decode job. The only
existing cancellation is cancel\_delayed\_work() in the frame-done IRQ
handler, which de-queues a pending work item but does not wait for a
callback that has already started, and it only runs when a frame completes.

When the fd is closed while a job is in flight (the frame-done IRQ has not
fired yet), nothing syncs the worker before mxc\_jpeg\_release() frees ctx
with kfree() after v4l2\_m2m\_ctx\_release(). A queued or executing
mxc\_jpeg\_device\_run\_timeout() can then recover ctx through
container\_of(&ctx-\>task\_timer) and dereference it (ctx-\>mxc\_jpeg,
slot\_data, dev\_warn) after ctx has been freed.

Cancel the worker from mxc\_jpeg\_stop\_streaming(). The cancel cannot live
in mxc\_jpeg\_release(): mxc\_jpeg\_device\_run() arms the timer while holding
only hw\_lock, not the mxc\_jpeg-\>lock mutex that release holds, so a cancel
in release could still race a concurrent mxc\_jpeg\_device\_run() that
re-arms the timer afterwards. mxc\_jpeg\_stop\_streaming() instead runs inside
v4l2\_m2m\_ctx\_release() -\> vb2\_queue\_release(), i.e. after
v4l2\_m2m\_cancel\_job() has set TRANS\_ABORT and waited for any in-flight job
to finish (so \_\_v4l2\_m2m\_try\_queue() will not queue and v4l2\_m2m\_try\_run()
will not run any further job for this context, which prevents
mxc\_jpeg\_device\_run() from re-arming the timer) and before the m2m context
is freed. cancel\_delayed\_work\_sync() removes a pending work item and waits
for a running callback, so the worker can no longer race with the
subsequent kfree(). The cancel is placed before the buffer-release loop so
a concurrently running timeout callback cannot race with it over the same
buffers. If the frame-done IRQ canceled a still-pending timer, this cancel
is a no-op; if the timeout callback has already started, it waits for the
callback to finish. The same mxc\_jpeg\_stop\_streaming() call is also
reached from VIDIOC\_STREAMOFF, which drains the worker early, although
STREAMOFF itself does not free ctx -- the use-after-free arises only
when the fd is later closed.

This bug was found by static analysis.

## Affected and fixed versions

- Linux: \>= 1f3367fa4210f37417cd55622b3872ababd2f06d, \< e5127281b5869ee8279b7790d059180476daeb62; \>= cfed9632ca8e8bdf0128745ae2400b72c4292886, \< 699777bac0c3a7c33bd63b2536d1ab5562392f24; \>= cfed9632ca8e8bdf0128745ae2400b72c4292886, \< 77e1c41d65a9f3cd22d73d0ec1f33cf6cd37b341; \>= cfed9632ca8e8bdf0128745ae2400b72c4292886, \< 49a0623994a10d3d333d48c304f89d816495f332; \>= cfed9632ca8e8bdf0128745ae2400b72c4292886, \< 9e393784a902bb4eb00a21e46d389a32c7ea61b0; \>= cfed9632ca8e8bdf0128745ae2400b72c4292886, \< 78fdfbf117c409273eecbfa7a528ef42358a0e38; \>= 6.1.143, \< 6.1.193 (cvelist)
- Linux: 6.2 (cvelist)

## Technologies

Linux kernel

## Mitigation

- Upgrade Linux to 6.1.193 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-99468. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-99468.md
Affected: Linux >= 1f3367fa4210f37417cd55622b3872ababd2f06d, < e5127281b5869ee8279b7790d059180476daeb62; >= cfed9632ca8e8bdf0128745ae2400b72c4292886, < 699777bac0c3a7c33bd63b2536d1ab5562392f24; >= cfed9632ca8e8bdf0128745ae2400b72c4292886, < 77e1c41d65a9f3cd22d73d0ec1f33cf6cd37b341; >= cfed9632ca8e8bdf0128745…
Fixed in: Linux 699777bac0c3a7c33bd63b2536d1ab5562392f24, Linux 77e1c41d65a9f3cd22d73d0ec1f33cf6cd37b341, Linux 49a0623994a10d3d333d48c304f89d816495f332, Linux 9e393784a902bb4eb00a21e46d389a32c7ea61b0, Linux 78fdfbf117c409273eecbfa7a528ef42358a0e38, Linux 6.1.193

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

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

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

High: CVSS 7.0 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed). The attack needs conditions outside the attacker's control, which makes it harder.

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

Linux \>= 1f3367fa4210f37417cd55622b3872ababd2f06d, \< e5127281b5869ee8279b7790d059180476daeb62; \>= cfed9632ca8e8bdf0128745ae2400b72c4292886, \< 699777bac0c3a7c33bd63b2536d1ab5562392f24; \>= cfed9632ca8e8bdf0128745ae2400b72c4292886, \< 77e1c41d65a9f3cd22d73d0ec1f33cf6cd37b341; \>= cfed9632ca8e8bdf0128745ae2400b72c4292886, \< 49a0623994a10d3d333d48c304f89d816495f332; \>= cfed9632ca8e8bdf0128745ae2400b72c4292886, \< 9e393784a902bb4eb00a21e46d389a32c7ea61b0; \>= cfed9632ca8e8bdf0128745ae2400b72c4292886, \< 78fdfbf117c409273eecbfa7a528ef42358a0e38; \>= 6.1.143, \< 6.1.193; Linux 6.2.

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

Yes. Fixed in Linux 699777bac0c3a7c33bd63b2536d1ab5562392f24, Linux 77e1c41d65a9f3cd22d73d0ec1f33cf6cd37b341, Linux 49a0623994a10d3d333d48c304f89d816495f332, Linux 9e393784a902bb4eb00a21e46d389a32c7ea61b0, Linux 78fdfbf117c409273eecbfa7a528ef42358a0e38, Linux 6.1.193. Upgrade Linux to 6.1.193 or later.

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

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/e5127281b5869ee8279b7790d059180476daeb62>
- other: <https://git.kernel.org/stable/c/699777bac0c3a7c33bd63b2536d1ab5562392f24>
- other: <https://git.kernel.org/stable/c/77e1c41d65a9f3cd22d73d0ec1f33cf6cd37b341>
- other: <https://git.kernel.org/stable/c/49a0623994a10d3d333d48c304f89d816495f332>
- other: <https://git.kernel.org/stable/c/9e393784a902bb4eb00a21e46d389a32c7ea61b0>
- other: <https://git.kernel.org/stable/c/78fdfbf117c409273eecbfa7a528ef42358a0e38>

## 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-99468>
- FIRST EPSS: EPSS scores by FIRST <https://www.first.org/epss/>

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