Linux
mtd: afs: validate v2 image info bounds
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.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= b7cf5e2830bbb128699d7635ce8404b7f605bc95, < 1bec05a68414cf8d0cab6cb42445b8603f32ffc4
- >= b7cf5e2830bbb128699d7635ce8404b7f605bc95, < 3ad8ff12fd44b08af9212ac4883a7e29d2ab7348
- >= b7cf5e2830bbb128699d7635ce8404b7f605bc95, < 875daa3c750814ff2e2dc050239c390048f0bcd0
- >= b7cf5e2830bbb128699d7635ce8404b7f605bc95, < da740539e8f370767317e24615349b9342a6e773
- >= b7cf5e2830bbb128699d7635ce8404b7f605bc95, < 1edea8900ca3e405c1421d8b5c29f97107874f72
- >= b7cf5e2830bbb128699d7635ce8404b7f605bc95, < 18916f475057cbd2fb8ea6ae86e6b85884ad1d53
- >= b7cf5e2830bbb128699d7635ce8404b7f605bc95, < d14e6298139f58a87a87d7022e26a7f37f0ddce7
- >= b7cf5e2830bbb128699d7635ce8404b7f605bc95, < e9290031f736e99ad17c25c00311c92c266843b7
Fixed in 1bec05a68414cf8d0cab6cb42445b8603f32ffc4, 3ad8ff12fd44b08af9212ac4883a7e29d2ab7348, 875daa3c750814ff2e2dc050239c390048f0bcd0, da740539e8f370767317e24615349b9342a6e773, 1edea8900ca3e405c1421d8b5c29f97107874f72, 18916f475057cbd2fb8ea6ae86e6b85884ad1d53, d14e6298139f58a87a87d7022e26a7f37f0ddce7, e9290031f736e99ad17c25c00311c92c266843b7
- 5.2
Fixed in 0, 5.10.270, 5.15.221, 6.1.188, 6.6.157, 6.12.110, 6.18.51, 7.2.5, 7.3
Mitigation
Upgrade Linux to 1bec05a68414cf8d0cab6cb42445b8603f32ffc4 or 3ad8ff12fd44b08af9212ac4883a7e29d2ab7348 or 875daa3c750814ff2e2dc050239c390048f0bcd0 or da740539e8f370767317e24615349b9342a6e773 or 1edea8900ca3e405c1421d8b5c29f97107874f72 or 18916f475057cbd2fb8ea6ae86e6b85884ad1d53 or d14e6298139f58a87a87d7022e26a7f37f0ddce7 or e9290031f736e99ad17c25c00311c92c266843b7 or later.
Upgrade Linux to 0 or 5.10.270 or 5.15.221 or 6.1.188 or 6.6.157 or 6.12.110 or 6.18.51 or 7.2.5 or 7.3 or later.
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.