mtd: afs: validate v2 image info bounds
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ b7cf5e2830bbb128699d7635ce8404b7f605bc95 · < 18916f475057cbd2fb8ea6ae86e6b85884ad1d53| No fix yet |
| Linux Linux |
|
|
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.
From the CVE record · Linux
The Linux kernel’s MTD AFS v2 parser does not validate an image information offset or region count read from flash contents before using them. Crafted flash contents could cause the parser to calculate an offset outside the erase block or walk beyond a local array. The input does not establish whether this can be reached over a network or requires local access, authentication, or user interaction.
Engineers running Linux kernels with the MTD AFS v2 parser should check their kernel’s exposure; affected versions were not provided.