CVE-2026-139042

HighCVSS 7.8/10Last modified Dec 1, 2026

Description

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

media: vicodec: fix out-of-bounds write on under-rounded coded dimensions

A capture format whose width or height is one more than a multiple of 16 makes the FWHT codec write one 8x8 block row, or column, past the end of the capture plane, and read the same block out of the reference frame for P-coded frames.

vic_round_dim() is documented to round a frame dimension up so that both the luma and the chroma plane end up a multiple of 8, but it only rounds the chroma plane:

round_up((dim) / (div), 8) * (div)

For div == 2 the result is a multiple of 16 in every case but one: when dim % 16 == 1, dim / div is already a multiple of 8 and the macro returns dim - 1. encode_plane() and decode_plane() round the same dimension with round_up(dim, 8), which yields dim + 7 -- one block more than the coded dimension that sized the buffer.

On a KASAN-enabled kernel, a 641x360 YUYV P-frame triggers:

BUG: KASAN: slab-out-of-bounds in add_deltas+0x450/0xcc0 Read of size 1 at addr ffff888009070800 by task trigger_bin/70

Call Trace: add_deltas+0x450/0xcc0 decode_plane+0x1916/0x3390 fwht_decode_frame+0x173/0x620 v4l2_fwht_decode+0x751/0x1120 device_run+0x6bb/0x1850

Round the dimension itself up to a multiple of 8 * div. The rounding changes only for div == 2 and dim % 16 == 1, and MAX_WIDTH and MAX_HEIGHT are both multiples of 16, so the rounded value still fits the advertised limits.

Metrics

CVSS 3.1 7.8/10CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Affected software

Source: the vendor's advisory (CNA). NVD analysis pending.

No affected versions have been published.

Timeline

Published
Nov 30, 2026
Last modified
Dec 1, 2026
NVD status
Received

Related CVEs from 2026

CVE-2026-139043In the Linux kernel, the following vulnerability has been resolved: media: vim2m: keep transaction buffer count stable while streaming V4LCVE-2026-139044In the Linux kernel, the following vulnerability has been resolved: media: go7007: bound EZ-USB I2C transfers to the usb_buf size go7007_uCVE-2026-139045In the Linux kernel, the following vulnerability has been resolved: media: au0828: Free URBs when starting DVB streaming fails start_urb_tCVE-2026-139046In the Linux kernel, the following vulnerability has been resolved: media: cx231xx: Fix cleanup path on failure If cx231xx_init_v4l2() faiCVE-2026-139047In the Linux kernel, the following vulnerability has been resolved: media: cx231xx-audio: drain wq_trigger before audio fini audio_triggerCVE-2026-139048In the Linux kernel, the following vulnerability has been resolved: media: pci: hws: only init channels the device actually has hws_probe(CVE-2026-1390497.0In the Linux kernel, the following vulnerability has been resolved: media: hws: Wait for IRQ handler before returning buffers hws_stop_strCVE-2026-139054.2Race in Chrome for iOS in Google Chrome on iOS prior to 150.0.7871.47 allowed a local attacker to obtain potentially sensitive information fCVE-2026-139050In the Linux kernel, the following vulnerability has been resolved: mtd: rawnand: ndfc: use devm_platform_ioremap_resource() Replace the oCVE-2026-139051In the Linux kernel, the following vulnerability has been resolved: fs: make sure to call fsnotify_inoderemove() only once when inode is deCVE-2026-139052In the Linux kernel, the following vulnerability has been resolved: mtd: spi-nor: sfdp: check the length of the SCCR map The spi_nor_parseCVE-2026-139053In the Linux kernel, the following vulnerability has been resolved: mtd: spi-nor: sfdp: check the length of the xSPI Profile 1.0 table The
CVE-2026-139042: High severity, CVSS 7.8 | Vulnix