Search CVEs and advisories

Search CVEs and Linux security advisories by vendor, product, package, or severity, and see which vulnerabilities each advisory addresses.

CVE

CVE-2026-99468

published high CVSS 3.1 · 7.0

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

Published
19 Nov 2026, 14:42:54 UTC
Updated
23 Nov 2026, 08:03:12 UTC
Language
en

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Linux — Linux1f3367fa4210f37417cd55622b3872ababd2f06d to < e5127281b5869ee8279b7790d059180476daeb62 · cfed9632ca8e8bdf0128745ae2400b72c4292886 to < 699777bac0c3a7c33bd63b2536d1ab5562392f24 · cfed9632ca8e8bdf0128745ae2400b72c4292886 to < 77e1c41d65a9f3cd22d73d0ec1f33cf6cd37b341 · cfed9632ca8e8bdf0128745ae2400b72c4292886 to < 49a0623994a10d3d333d48c304f89d816495f332 · cfed9632ca8e8bdf0128745ae2400b72c4292886 to < 9e393784a902bb4eb00a21e46d389a32c7ea61b0 · cfed9632ca8e8bdf0128745ae2400b72c4292886 to < 78fdfbf117c409273eecbfa7a528ef42358a0e38 · 6.1.143 to < 6.1.193 · Other versions: unaffected Affected Not stated Linux
Linux — Linux6.2 (affected) · 0 to < 6.2 (unaffected · semver) · 6.1.193 through 6.1.* (unaffected · semver) · 6.6.163 through 6.6.* (unaffected · semver) · 6.12.117 through 6.12.* (unaffected · semver) · 6.18.61 through 6.18.* (unaffected · semver) · 7.3.2 through 7.3.* (unaffected · semver) · 7.4-rc1 and later (unaffected · original_commit_for_fix) · Other versions: affected Version-specific Not stated Linux
Amazon Linux AL2 Release evaluation Not Affected Not required Amazon Linux assessment
Amazon Linux AL2023 Release evaluation Not Affected Not required Amazon Linux assessment
Debian bookworm linux-6.12 Advisory build 6.12.117-1~deb12u1 DLA-4927-1
SUSE / openSUSE openSUSE-Tumbleweed kernel-develaarch64 Advisory build 7.3.6-2.1 OPENSUSE-SU-2026:12733-1
SUSE / openSUSE openSUSE-Tumbleweed kernel-develppc64le Advisory build 7.3.6-2.1 OPENSUSE-SU-2026:12733-1
SUSE / openSUSE openSUSE-Tumbleweed kernel-devels390x Advisory build 7.3.6-2.1 OPENSUSE-SU-2026:12733-1
Show 13 more entries
Distro / vendorReleasePackage / productPublisher statusFixed buildSource
SUSE / openSUSE openSUSE-Tumbleweed kernel-develx86_64 Advisory build 7.3.6-2.1 OPENSUSE-SU-2026:12733-1
SUSE / openSUSE openSUSE-Tumbleweed kernel-macrosaarch64 Advisory build 7.3.6-2.1 OPENSUSE-SU-2026:12733-1
SUSE / openSUSE openSUSE-Tumbleweed kernel-macrosppc64le Advisory build 7.3.6-2.1 OPENSUSE-SU-2026:12733-1
SUSE / openSUSE openSUSE-Tumbleweed kernel-macross390x Advisory build 7.3.6-2.1 OPENSUSE-SU-2026:12733-1
SUSE / openSUSE openSUSE-Tumbleweed kernel-macrosx86_64 Advisory build 7.3.6-2.1 OPENSUSE-SU-2026:12733-1
SUSE / openSUSE openSUSE-Tumbleweed kernel-sourceaarch64 Advisory build 7.3.6-2.1 OPENSUSE-SU-2026:12733-1
SUSE / openSUSE openSUSE-Tumbleweed kernel-sourceppc64le Advisory build 7.3.6-2.1 OPENSUSE-SU-2026:12733-1
SUSE / openSUSE openSUSE-Tumbleweed kernel-sources390x Advisory build 7.3.6-2.1 OPENSUSE-SU-2026:12733-1
SUSE / openSUSE openSUSE-Tumbleweed kernel-sourcex86_64 Advisory build 7.3.6-2.1 OPENSUSE-SU-2026:12733-1
SUSE / openSUSE openSUSE-Tumbleweed kernel-source-vanillaaarch64 Advisory build 7.3.6-2.1 OPENSUSE-SU-2026:12733-1
SUSE / openSUSE openSUSE-Tumbleweed kernel-source-vanillappc64le Advisory build 7.3.6-2.1 OPENSUSE-SU-2026:12733-1
SUSE / openSUSE openSUSE-Tumbleweed kernel-source-vanillas390x Advisory build 7.3.6-2.1 OPENSUSE-SU-2026:12733-1
SUSE / openSUSE openSUSE-Tumbleweed kernel-source-vanillax86_64 Advisory build 7.3.6-2.1 OPENSUSE-SU-2026:12733-1

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.

en · Linux · cna

Vendor advisories explicitly linked to this CVE.

2

Assessment

CVSS risk assessment and additional context for this vulnerability.

CVSS version
3.1
Base score
7.0 / 10
Severity
high
Provider
Linux · cna
Vector string
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
Scenarios
en: AV:L - A local process opens the node registered in mxc_jpeg_probe() and, via VIDIOC_QBUF/STREAMON, v4l2_m2m_try_run() calls mxc_jpeg_device_run() to arm ctx->task_timer. close() reaches mxc_jpeg_release() -> v4l2_m2m_ctx_release() -> mxc_jpeg_stop_streaming() and then kfree(ctx); no remote protocol carries the trigger. AC:H - v4l2_m2m_ctx_release() waits in v4l2_m2m_cancel_job() until TRANS_RUNNING clears, and mxc_jpeg_dec_irq() cancel_delayed_work()s ctx->task_timer before v4l2_m2m_job_finish(). The UAF needs the 2000ms mxc_jpeg_device_run_timeout() callback to already be running and still touch ctx after that wait; a normal frame-done disarms a pending timer, and the attacker cannot force that overlap. PR:L - mxc_jpeg_open() and the streaming ioctls in mxc_jpeg_ioctl_ops (VIDIOC_QBUF, VIDIOC_STREAMON) never call capable(). Any local user who can open the /dev/video node can queue a job and close the fd; CAP_SYS_ADMIN is only checked for unrelated v4l2 debug-register ioctls. UI:N - The same process opens the node, queues a buffer, starts streaming so mxc_jpeg_device_run() arms the timer, and closes the fd. No other user has to mount media or take an action. S:U - The object freed by mxc_jpeg_release() is the host-kernel mxc_jpeg_ctx allocated in mxc_jpeg_open(). The timeout callback's later use of that ctx stays inside the same kernel security domain. C:H - mxc_jpeg_device_run_timeout() rebuilds ctx with container_of() on the embedded task_timer and reads ctx->mxc_jpeg and ctx->fh.m2m_ctx after kfree(). Those fields sit in the kmalloc slab, so reclaiming the object feeds attacker-controlled kernel pointers into the callback. I:H - On that freed ctx the callback spin_lock()s ctx->mxc_jpeg->hw_lock and, when slot_data.used is set, calls mxc_jpeg_job_finish() and v4l2_m2m_job_finish(). That writes kernel memory through the reclaimed mxc_jpeg and m2m_ctx pointers. A:H - The callback runs in kernel worker context. After kfree(ctx), its first dereference of ctx->mxc_jpeg and the hw_lock acquisition fault or oops the kernel, and mxc_jpeg_job_finish() will also walk freed m2m buffers.

Publisher product statements

Version ranges and default statuses as reported by each provider.

Affected vendor and product assertions
VendorProductVersion statusSource
Linux Linux 1f3367fa4210f37417cd55622b3872ababd2f06d to < e5127281b5869ee8279b7790d059180476daeb62 (affected · git)cfed9632ca8e8bdf0128745ae2400b72c4292886 to < 699777bac0c3a7c33bd63b2536d1ab5562392f24 (affected · git)cfed9632ca8e8bdf0128745ae2400b72c4292886 to < 77e1c41d65a9f3cd22d73d0ec1f33cf6cd37b341 (affected · git)cfed9632ca8e8bdf0128745ae2400b72c4292886 to < 49a0623994a10d3d333d48c304f89d816495f332 (affected · git)cfed9632ca8e8bdf0128745ae2400b72c4292886 to < 9e393784a902bb4eb00a21e46d389a32c7ea61b0 (affected · git)cfed9632ca8e8bdf0128745ae2400b72c4292886 to < 78fdfbf117c409273eecbfa7a528ef42358a0e38 (affected · git)6.1.143 to < 6.1.193 (affected · semver)Default: unaffected Linux · cna
Linux Linux 6.2 (affected)0 to < 6.2 (unaffected · semver)6.1.193 through 6.1.* (unaffected · semver)6.6.163 through 6.6.* (unaffected · semver)6.12.117 through 6.12.* (unaffected · semver)6.18.61 through 6.18.* (unaffected · semver)7.3.2 through 7.3.* (unaffected · semver)7.4-rc1 and later (unaffected · original_commit_for_fix)Default: affected Linux · cna

Weaknesses

0

No weakness assertions.

References

6

Provider assertions

1

Linux · cna

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

Provenance

Schema
5.2
Searchable
yes
Content hash
68f2c368be7a0d9481811fba26fa8bf0976696cf2015101793a910a841c59678
Ingested
23 Nov 2026, 14:35:29 UTC
Source record
Official CVE record

Search filters

Match options apply to free text. CVE words match tokens; use contains:"…" for literal substrings.

Text

Words and phrases
buffer overflow "remote code execution"
Word prefix
auth*
Literal substring (title or description)
contains:"use-after-free"
Exclude a term or filter
-test -vendor:example

Affected product

Vendor
vendor:Example
Product
product:"Demo Widget"

Severity and score

Severity · none, low, medium, high, critical, unknown
severity:critical
CWE identifier
cwe:CWE-863
CVSS score (0–10)
cvss:>=7.0

Dates and status

Published date · comparisons, relative days
published:>=2026-01-01
Updated date · comparisons, relative days
updated:<30d
Status · published (default), rejected, unknown
status:rejected