ZeroHour

CVE-2026-89954

niche

Out-of-Bounds Access in Linux Kernel MTD AFS v2 Flash Partition Parser

CVSS 3.1
8.0 high
EPSS
Published
()
Modified
AI analysis

The AFS (Arm Firmware Suite) v2 partition parser in the Linux kernel MTD subsystem fails to validate values read from flash before using them: the footer-derived image information offset is not checked against the current erase block (allowing an underflow in the erase block calculation), and the flash-supplied region_count is not checked against a fixed-size local array before region entries are walked. An attacker who can control or corrupt the contents of AFS-partitioned flash — for example via a crafted firmware image or malicious local access to the flash device — can trigger out-of-bounds memory accesses in the kernel. Successful exploitation can lead to kernel information disclosure, denial of service, and potentially privilege escalation (CVSS 8.0: local vector, no privileges or user interaction required). Any Linux system running a kernel with the AFS v2 parser enabled on hardware using AFS flash partition layouts is affected, which in practice means a small set of embedded ARM platforms. No public proof-of-concept or in-the-wild exploitation is known.

What to do: Update to a kernel that includes the upstream fix for CVE-2026-89954, or backport the AFS v2 bounds-validation patch into your vendor kernel. Check whether your devices enable CONFIG_MTD_AFS and actually use AFS flash partitioning; if not patched, limit local access to MTD character/block devices and avoid loading firmware images from untrusted sources onto AFS-partitioned flash.

Affected
Linux kernel MTD AFS flash partition parser (drivers/mtd/parsers/afs.c)Kernels containing the AFS v2 parser prior to the commit fixing CVE-2026-89954 (specific version ranges not disclosed in the advisory data)
Estimated exposure
nicheunknown; plausibly at most tens of thousands of embedded ARM devices — Only systems built with the MTD AFS parser enabled and boards whose raw flash is partitioned with Arm Firmware Suite v2 layouts are affected — a niche subset of embedded ARM Linux deployments, not typical servers or desktops.

Order-of-magnitude estimate by the model from install counts, market share and public scan data it knows; verify before quoting.

Description

In the Linux kernel, the following vulnerability has been resolved: mtd: afs: validate v2 image info bounds The AFS v2 parser uses footer[8] to locate the image information block inside the current erase block, then uses the image information region_count to walk entries from a fixed local array. The footer offset and region count come from flash contents and are not checked against the erase block or the local image-info array before use. Reject v2 entries whose image information offset would underflow the erase block calculation, and reject region counts that cannot fit in the local image-info array before walking region entries.

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

In the news

No ingested article mentions this CVE yet.