CVEBrief

Home / Linux / Linux / CVE-2026-139004

CVE-2026-139004: is it exploited, and which versions of Linux are affected and fixed?

CVE-2026-139004 is a vulnerability in Linux. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 18:39 UTC). Affected: Linux from 6.15 until the fixed versions (CVE record by Linux). Fixed in 6.18.63, 7.3.4 and 7.4-rc1 (CVE record by Linux).

Data checked December 3, 2026: last read CISA KEV December 3, 2026, 18:39 UTC, CVE record November 30, 2026, 13:35 UTC and NVD November 30, 2026, 15:09 UTC.

Exploited in the wild
Not in CISA KEV
KEV read December 3, 2026, 18:39 UTC
Affected
Linux from 6.15 until the fixed versions
CVE record by Linux
Fixed in
6.18.63, 7.3.4 and 7.4-rc1
CVE record by Linux
Exploit odds (EPSS)
0.20% in 30 days
higher than 10% of CVEs; FIRST, December 3, 2026
Free for up to 3 items: a weekly email, and an alert the day CISA lists one as exploited. We email you once to confirm. More about the watch

What is CVE-2026-139004?

In the Linux kernel, the following vulnerability has been resolved: spi: spi-qpic-snand: publish the ECC context to snandc->qspi qcom_spi_ooblayout_ecc() and qcom_spi_ooblayout_free() read the ECC configuration through snandc->qspi->ecc. qcom_spi_probe() points it at a zeroed scratch struct and only qcom_spi_ecc_prepare_io_req_pipelined(), which runs on page I/O, ever updates it. qcom_spi_ecc_init_ctx_pipelined() installs the ooblayout but does not publish the context it just allocated, and qcom_spi_ecc_cleanup_ctx_pipelined() frees that context without clearing the pointer. spinand_init() calls mtd_ooblayout_count_freebytes() right after the ECC context is created and before any page I/O, so the ooblayout always runs against a pointer that does not describe the current context: - On a first probe it reads the zeroed struct from qcom_spi_probe(), so steps, bytes and bbm_size are 0. The count then returns 0 rather than an error, so the probe continues with mtd->oobavail set to 0. - On a probe retry it reads the ecc_cfg the previous attempt freed. A retry is easy to hit. On IPQ5018 with the qcom,smem-part parser the partition parse returns -EPROBE_DEFER until SMEM has probed, so the first spi-nand probe defers. It defers inside mtd_device_parse_register(), after mtd_otp_nvmem_add() has already read the factory OTP - that read goes through prepare_io_req and leaves snandc->qspi->ecc pointing at the context that spinand_cleanup() then frees. The second probe allocates a new context, never publishes it, and computes the OOB layout from the freed one. Once the slab has been reused, qecc->steps holds garbage and oobregion->length = qecc->steps * 4; goes negative. qcom_spi_ooblayout_free() only reports -ERANGE for section 1 and later, so mtd_ooblayout_count_bytes() sums the regions and returns that negative length as the byte count. The -512 below is steps * 4 with steps == -128. It is a byte count that happens to collide with -ERESTARTSYS, not an error the driver returned. spinand_init() takes it as an error, and because it is not -EPROBE_DEFER the driver core never retries and the NAND never appears: spi-nand spi0.0: ESMT SPI NAND was found. spi-nand spi0.0: probe with driver spi-nand failed with error -512 UBI error: cannot open mtd rootfs, error -2 Waiting for root device /dev/ubiblock0_1... On a Mercusys MR80X (IPQ5018, ESMT F50D1G41LB) about half of the boots failed to mount the rootfs, the outcome depending on whether the freed memory had been overwritten yet. Publish the context when it is created and clear the pointer when it is destroyed. Clearing leaves snandc->qspi->ecc NULL after cleanup, which is safe: the mtd is unregistered before cleanup_ctx runs, so no ooblayout callback can follow.

From the CVE record by Linux, last updated November 30, 2026, 13:26 UTC.

Which versions are affected, and which fix it?

VendorProductAffectedFixed or not affected from
LinuxLinuxnot stated
LinuxLinuxfrom 6.15 until the fixed versions6.18.63, 7.3.4, 7.4-rc1

As the CVE record by Linux states it, last updated November 30, 2026. Version ranges are the CNA's; a version the record calls not affected is usually the fix.

Is CVE-2026-139004 exploited in the wild?

CISA KEV
Not listed (catalog 2026.11.30)
EPSS
0.20% probability of exploitation activity in the next 30 days, percentile 10.1 (FIRST EPSS, scores of December 3, 2026)

Where are the vendor advisories and references?

When was it published, and where is the official record?

Reserved
November 30, 2026
Published
November 30, 2026, 13:26 UTC
CVE record updated
November 30, 2026, 13:26 UTC by Linux
NVD
Received, last modified November 30, 2026, 14:18 UTC
Last checked
CVE list November 30, 2026, 13:35 UTC; NVD November 30, 2026, 15:09 UTC; KEV December 3, 2026, 18:39 UTC; EPSS December 3, 2026
Official record
cve.org · NVD

What other CVEs affect Linux?

Every CVE in Linux

Questions about CVE-2026-139004

Is CVE-2026-139004 exploited in the wild?

Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 18:39 UTC. FIRST's EPSS gives it a 0.20% chance of exploitation activity in the next 30 days (scores of December 3, 2026).

Which versions of Linux are affected by CVE-2026-139004?

Linux from 6.15 until the fixed versions, per the CVE record by Linux. The tables above give every range the sources list.

Which version fixes CVE-2026-139004?

6.18.63, 7.3.4 and 7.4-rc1, per the CVE record by Linux. Check the vendor's advisory before you rely on it.

Where is the official record of CVE-2026-139004?

The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.