Linux
dm array: reject an array block whose value size is not the caller's
In the Linux kernel, the following vulnerability has been resolved: dm array: reject an array block whose value size is not the caller's array_block_check() can only compare the header against itself, so a block with value_size 4 and max_entries 1018 is internally consistent and passes. dm-cache keeps two arrays -- mappings at 8 bytes and hints at 4 -- and the roots for both live in the superblock. Point the mappings root at a hint block and __load_mappings() walks it through an info whose value size is 8, so element_at() strides 8 bytes over 4-byte entries and reaches offset 8160 of a 4096-byte block. get_ablock() and __shadow_ablock() are the two places that hold the block and the caller at once. Reject there when the two value sizes disagree. Arrays only ever read their own blocks, so this fires on crafted metadata only.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 6513c29f44f2cc970c0e9fecfe5a6526c3e73025, < 35cd3b278448c79614f65ab6bbc9ed348d847df9
- >= 6513c29f44f2cc970c0e9fecfe5a6526c3e73025, < a8237cb8fa0a628d903e76635bfdeae4202036b9
- >= 6513c29f44f2cc970c0e9fecfe5a6526c3e73025, < a530a9a419a7c5fdb7dae55ffa2dd7a130631842
- >= 6513c29f44f2cc970c0e9fecfe5a6526c3e73025, < 522fa26da24ccaa298ebe3c1c97395d2d63dfc21
- >= 6513c29f44f2cc970c0e9fecfe5a6526c3e73025, < 7bf4b5cb42a4e27f36bcbc6209d82a5da9c0168c
- >= 6513c29f44f2cc970c0e9fecfe5a6526c3e73025, < ac4a5eb8b002a0742c938fc98b922e243f53573a
- >= 6513c29f44f2cc970c0e9fecfe5a6526c3e73025, < cb409b38b0232ee4385ef55cddcd6fbdd011a8a2
- >= 6513c29f44f2cc970c0e9fecfe5a6526c3e73025, < 4538a287bdf5d0f9a379c678e5262b9f5783f547
Fixed in 35cd3b278448c79614f65ab6bbc9ed348d847df9, a8237cb8fa0a628d903e76635bfdeae4202036b9, a530a9a419a7c5fdb7dae55ffa2dd7a130631842, 522fa26da24ccaa298ebe3c1c97395d2d63dfc21, 7bf4b5cb42a4e27f36bcbc6209d82a5da9c0168c, ac4a5eb8b002a0742c938fc98b922e243f53573a, cb409b38b0232ee4385ef55cddcd6fbdd011a8a2, 4538a287bdf5d0f9a379c678e5262b9f5783f547
- 3.9
Fixed in 0, 5.10.270, 5.15.221, 6.1.188, 6.6.157, 6.12.109, 6.18.50, 7.2.4, 7.3
Mitigation
Upgrade Linux to 35cd3b278448c79614f65ab6bbc9ed348d847df9 or a8237cb8fa0a628d903e76635bfdeae4202036b9 or a530a9a419a7c5fdb7dae55ffa2dd7a130631842 or 522fa26da24ccaa298ebe3c1c97395d2d63dfc21 or 7bf4b5cb42a4e27f36bcbc6209d82a5da9c0168c or ac4a5eb8b002a0742c938fc98b922e243f53573a or cb409b38b0232ee4385ef55cddcd6fbdd011a8a2 or 4538a287bdf5d0f9a379c678e5262b9f5783f547 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.109 or 6.18.50 or 7.2.4 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.