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-138928

published high CVSS 3.1 · 7.0

media: tw686x: fix V4L2 device lifetime on probe failure

Published
30 Nov 2026, 13:26:17 UTC
Updated
01 Dec 2026, 05:40:46 UTC
Language
en

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Linux — Linux704a84ccdbf19fdce9adfda0b936dfdcac52fa49 to < 3cf093341c49293e3ca9d43a7053753fcb6532fa · 704a84ccdbf19fdce9adfda0b936dfdcac52fa49 to < b407fbdb19ac4e79cd58fcaaa0f00d619db7e48d · 704a84ccdbf19fdce9adfda0b936dfdcac52fa49 to < 5f6c914516b4c0b1bd18d4122ee6d01b05339e3a · 704a84ccdbf19fdce9adfda0b936dfdcac52fa49 to < bd24b2b9f49f4b00c8217d01f636d1f3c5913661 · 704a84ccdbf19fdce9adfda0b936dfdcac52fa49 to < 75e716e458f3093ee5cf5d38383b08c43821f435 · 704a84ccdbf19fdce9adfda0b936dfdcac52fa49 to < c1b1e81ed8b2bae7299243c5722332451b0c3338 · 704a84ccdbf19fdce9adfda0b936dfdcac52fa49 to < 546536807ad441e63c92ee902860318e245182c1 · 704a84ccdbf19fdce9adfda0b936dfdcac52fa49 to < ce6c6dd632b3b4a2c2bfc9efd8f656f4d2137dbd · Other versions: unaffected Affected Not stated Linux
Linux — Linux4.7 (affected) · 0 to < 4.7 (unaffected · semver) · 5.10.275 through 5.10.* (unaffected · semver) · 5.15.226 through 5.15.* (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.63 through 6.18.* (unaffected · semver) · 7.3.4 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

Description

In the Linux kernel, the following vulnerability has been resolved: media: tw686x: fix V4L2 device lifetime on probe failure tw686x_video_init() registers the V4L2 device, which initializes its reference count. Successfully registered video devices take additional references to the V4L2 device as well. The probe failure paths currently tear down the PCI resources and then free the channel arrays and the tw686x device directly. This bypasses the V4L2 device reference count and the tw686x_dev_release() callback. If a video device still holds a reference, its eventual release will drop a reference to the already freed V4L2 device. Even when no extra references remain, directly freeing the device bypasses the lifetime management established by v4l2_device_register(). After cleaning up the PCI resources, check whether the V4L2 device was registered. If so, mark the hardware unavailable and drop the driver's V4L2 device reference, letting tw686x_dev_release() free the backing objects when the final reference is released. Keep the existing direct free path for failures that occur before V4L2 device registration. This issue was found by manual code inspection.

en · Linux · cna

Vendor advisories explicitly linked to this CVE.

0

No linked advisories were found for this CVE.

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 - The freed objects are touched from a local syscall: close(2) on a /dev/videoN fd opened during tw686x_probe() runs v4l2_release() -> vb2_fop_release() on vc->vidq inside the kfree'd video_channels array, then video_put() -> v4l2_device_put() on the kfree'd tw686x_dev. No remote data is involved; the probe failure itself is PCI/hardware-driven. AC:H - Needs tw686x_probe() to fail after v4l2_device_register() (later-channel dma_alloc_coherent/video_register_device failure or request_irq on the shared INTx line) during a boot/hotplug probe the user cannot start. The user must also open the node, which devtmpfs creates 0600 root until udev relaxes it, in the short window before probe tears it down. PR:L - The actor holding the fd only needs ordinary open access to /dev/videoN (video group or seat uaccess), with no capability checks in v4l2_open()/v4l2_fh_open(). Starting the probe yourself needs root (sysfs bind, module load, PCI rescan), but a hotplug or link-flap re-probe needs no privilege from the attacker. UI:N - No other user has to act; the attacker opens and later closes their own fd on the video node, and the failing probe comes from hardware or system events, not a victim action. S:U - Memory corruption stays inside the kernel's own authority; there is no guest/host, IOMMU or sandbox boundary involved in the tw686x probe/release path. C:H - After the kfree, v4l2_release() and vb2_fop_release() read vdev->v4l2_dev->mdev, vdev->queue->lock and q->ops from reclaimable kmalloc memory (the tw686x_dev and video_channels arrays), so a sprayed replacement object controls the pointers the kernel then follows. I:H - Use-after-free with writes and indirect calls: mutex_lock on the freed vc->vb_mutex, vb2_queue_release() calling through the freed queue's q->ops, and kref_put on the freed v4l2_dev.ref that, on reaching zero, calls v4l2_dev->release loaded from freed memory. This enables control-flow hijack. A:H - The close path that dereferences the freed tw686x_dev and vb2_queue will oops or corrupt the slab, crashing the kernel; even without an fd holder, each failed probe leaks the pci_dev reference taken by v4l2_device_register() and the ctrl handlers.

Publisher product statements

Version ranges and default statuses as reported by each provider.

Affected vendor and product assertions
VendorProductVersion statusSource
Linux Linux 704a84ccdbf19fdce9adfda0b936dfdcac52fa49 to < 3cf093341c49293e3ca9d43a7053753fcb6532fa (affected · git)704a84ccdbf19fdce9adfda0b936dfdcac52fa49 to < b407fbdb19ac4e79cd58fcaaa0f00d619db7e48d (affected · git)704a84ccdbf19fdce9adfda0b936dfdcac52fa49 to < 5f6c914516b4c0b1bd18d4122ee6d01b05339e3a (affected · git)704a84ccdbf19fdce9adfda0b936dfdcac52fa49 to < bd24b2b9f49f4b00c8217d01f636d1f3c5913661 (affected · git)704a84ccdbf19fdce9adfda0b936dfdcac52fa49 to < 75e716e458f3093ee5cf5d38383b08c43821f435 (affected · git)704a84ccdbf19fdce9adfda0b936dfdcac52fa49 to < c1b1e81ed8b2bae7299243c5722332451b0c3338 (affected · git)704a84ccdbf19fdce9adfda0b936dfdcac52fa49 to < 546536807ad441e63c92ee902860318e245182c1 (affected · git)704a84ccdbf19fdce9adfda0b936dfdcac52fa49 to < ce6c6dd632b3b4a2c2bfc9efd8f656f4d2137dbd (affected · git)Default: unaffected Linux · cna
Linux Linux 4.7 (affected)0 to < 4.7 (unaffected · semver)5.10.275 through 5.10.* (unaffected · semver)5.15.226 through 5.15.* (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.63 through 6.18.* (unaffected · semver)7.3.4 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

8

Provider assertions

1

Linux · cna

media: tw686x: fix V4L2 device lifetime on probe failure

Provenance

Schema
5.2
Searchable
yes
Content hash
2e71e57467aee73b2c7dade717e30d4530bb90f8105cc2d62d15eb135b2061b5
Ingested
01 Dec 2026, 05:47:22 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