FKIE_CVE-2026-139004
Vulnerability from fkie_nvd - Published: 2026-11-30 14:18 - Updated: 2026-11-30 14:18| Vendor | Product | Version |
|---|
{
"affected": [
{
"affectedData": [
{
"defaultStatus": "unaffected",
"product": "Linux",
"programFiles": [
"drivers/spi/spi-qpic-snand.c"
],
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"vendor": "Linux",
"versions": [
{
"lessThan": "fc00ea2413ee6b3743e341c588360c5b3a5ec6b8",
"status": "affected",
"version": "7304d1909080ef0c9da703500a97f46c98393fcd",
"versionType": "git"
},
{
"lessThan": "432fd21eec8b3199e3fc06332b8c081b8a8a6ba9",
"status": "affected",
"version": "7304d1909080ef0c9da703500a97f46c98393fcd",
"versionType": "git"
},
{
"lessThan": "f94c9b68bb5fdbef9f841da493d5305ff634ebb5",
"status": "affected",
"version": "7304d1909080ef0c9da703500a97f46c98393fcd",
"versionType": "git"
}
]
},
{
"defaultStatus": "affected",
"product": "Linux",
"programFiles": [
"drivers/spi/spi-qpic-snand.c"
],
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"vendor": "Linux",
"versions": [
{
"status": "affected",
"version": "6.15"
},
{
"lessThan": "6.15",
"status": "unaffected",
"version": "0",
"versionType": "semver"
},
{
"lessThanOrEqual": "6.18.*",
"status": "unaffected",
"version": "6.18.63",
"versionType": "semver"
},
{
"lessThanOrEqual": "7.3.*",
"status": "unaffected",
"version": "7.3.4",
"versionType": "semver"
},
{
"lessThanOrEqual": "*",
"status": "unaffected",
"version": "7.4-rc1",
"versionType": "original_commit_for_fix"
}
]
}
],
"source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67"
}
],
"cveTags": [],
"descriptions": [
{
"lang": "en",
"value": "In the Linux kernel, the following vulnerability has been resolved:\n\nspi: spi-qpic-snand: publish the ECC context to snandc-\u003eqspi\n\nqcom_spi_ooblayout_ecc() and qcom_spi_ooblayout_free() read the ECC\nconfiguration through snandc-\u003eqspi-\u003eecc. qcom_spi_probe() points it at a\nzeroed scratch struct and only qcom_spi_ecc_prepare_io_req_pipelined(),\nwhich runs on page I/O, ever updates it. qcom_spi_ecc_init_ctx_pipelined()\ninstalls the ooblayout but does not publish the context it just\nallocated, and qcom_spi_ecc_cleanup_ctx_pipelined() frees that context\nwithout clearing the pointer.\n\nspinand_init() calls mtd_ooblayout_count_freebytes() right after the ECC\ncontext is created and before any page I/O, so the ooblayout always runs\nagainst a pointer that does not describe the current context:\n\n - On a first probe it reads the zeroed struct from qcom_spi_probe(),\n so steps, bytes and bbm_size are 0. The count then returns 0 rather\n than an error, so the probe continues with mtd-\u003eoobavail set to 0.\n\n - On a probe retry it reads the ecc_cfg the previous attempt freed.\n\nA retry is easy to hit. On IPQ5018 with the qcom,smem-part parser the\npartition parse returns -EPROBE_DEFER until SMEM has probed, so the\nfirst spi-nand probe defers. It defers inside\nmtd_device_parse_register(), after mtd_otp_nvmem_add() has already read\nthe factory OTP - that read goes through prepare_io_req and leaves\nsnandc-\u003eqspi-\u003eecc pointing at the context that spinand_cleanup() then\nfrees. The second probe allocates a new context, never publishes it, and\ncomputes the OOB layout from the freed one. Once the slab has been\nreused, qecc-\u003esteps holds garbage and\n\n oobregion-\u003elength = qecc-\u003esteps * 4;\n\ngoes negative. qcom_spi_ooblayout_free() only reports -ERANGE for\nsection 1 and later, so mtd_ooblayout_count_bytes() sums the regions and\nreturns that negative length as the byte count. The -512 below is\nsteps * 4 with steps == -128. It is a byte count that happens to\ncollide with -ERESTARTSYS, not an error the driver returned.\nspinand_init() takes it as an error, and because it is not\n-EPROBE_DEFER the driver core never retries and the NAND never appears:\n\n spi-nand spi0.0: ESMT SPI NAND was found.\n spi-nand spi0.0: probe with driver spi-nand failed with error -512\n UBI error: cannot open mtd rootfs, error -2\n Waiting for root device /dev/ubiblock0_1...\n\nOn a Mercusys MR80X (IPQ5018, ESMT F50D1G41LB) about half of the boots\nfailed to mount the rootfs, the outcome depending on whether the freed\nmemory had been overwritten yet.\n\nPublish the context when it is created and clear the pointer when it is\ndestroyed. Clearing leaves snandc-\u003eqspi-\u003eecc NULL after cleanup, which\nis safe: the mtd is unregistered before cleanup_ctx runs, so no\nooblayout callback can follow."
}
],
"id": "CVE-2026-139004",
"lastModified": "2026-11-30T14:18:03.387",
"metrics": {},
"published": "2026-11-30T14:18:03.387",
"references": [
{
"source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
"url": "https://git.kernel.org/stable/c/432fd21eec8b3199e3fc06332b8c081b8a8a6ba9"
},
{
"source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
"url": "https://git.kernel.org/stable/c/f94c9b68bb5fdbef9f841da493d5305ff634ebb5"
},
{
"source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
"url": "https://git.kernel.org/stable/c/fc00ea2413ee6b3743e341c588360c5b3a5ec6b8"
}
],
"sourceIdentifier": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
"vulnStatus": "Received"
}
Drag nodes to arrange them. Double-click a related vulnerability to open it, or a source to visit its link. The Physics button on the left tunes the layout and the simulation; the legend at the bottom left hides or shows nodes by kind and by sighting type.
Sightings
| Author | Source | Type | Date | Other |
|---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or observed by the user.
- Confirmed: The vulnerability has been validated from an analyst's perspective.
- Published Proof of Concept: A public proof of concept is available for this vulnerability.
- Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
- Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
- Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
- Not confirmed: The user expressed doubt about the validity of the vulnerability.
- Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
Vulnerability timeline
Sightings and recorded dates, grouped by day · UTC
How durations are calculated
Following the VTEM framework (Black Hat USA 2015), time to patch starts when the vendor or a coordinator was informed, total time to patch at discovery, and disclosure to patch at public disclosure; vendor response time runs from the report to its acknowledgement. Time to exploit and time unpatched start at the earliest discovery or report, falling back to public disclosure. Unpatched time ends at the first recorded patch, or the calculation time when no patch is recorded. Exploitation to patch shows the interval between those two events; a published proof of concept is a public exploit, not exploitation. The method is described in a publication.
Each result shows its source dates. A negative interval means the end event came first; when date-only inputs leave the order open, the result says so. Date-only inputs are approximate. The earliest evidence wins: KEV report dates and sightings are labelled as such. Records describing another vulnerability are listed but never calculated from, and a PoC alone does not establish exploitation. Missing patch evidence does not prove that no patch exists. Filters below change the event list only.
Loading timeline…
The approach is described in our paper Mapping CVEs to MITRE ATT&CK Techniques: A Curated Gold-Set Classifier and the Limits of LLM-Assisted Label Expansion.
Browse all ATT&CK techniques and the vulnerabilities related to each.
Related by attack behaviour
Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.