dm-integrity: validate the superblock on resume
- Published
- Last modified
- Where the record stands: published, rejected by its publisher, or superseded by another id.What do these mean? →
- published
- Whether CISA lists it in its Known Exploited Vulnerabilities catalog: proof that attackers are using it.What do these mean? →
- Not listed in CISA KEV
- Fix
- Fixed in 6.18.58, 6.2, 6.7, 6.13, 6.20, and 1 more
- Whether working attack code is public (Exploit-DB, Metasploit, Nuclei or GitHub). Public code makes attacks easier.What do these mean? →
- None on Exploit-DB, Metasploit or GitHub
Summary
The Linux kernel's dm-integrity device-mapper target, which provides integrity checking for block devices, is affected. A local user who can modify the underlying device's superblock while the device is suspended could cause a kernel crash (a NULL pointer dereference), resulting in a denial of service.
Summarized by anthropic/claude-haiku-5.5. Verify details against the original sources.
Read the original description
In the Linux kernel, the following vulnerability has been resolved: dm-integrity: validate the superblock on resume dm_integrity_resume() re-reads the superblock from the device so that it picks up the flags and the recalculate position. It performs no validation on the result, while the constructor validates the superblock it reads and sizes all the in-memory structures according to it. The user may modify the superblock on the underlying device while the dm-integrity device is suspended, so that the two no longer agree. In particular, access_journal_data() shifts the journal entry index by ic->sb->log2_sectors_per_block, while ic->journal_section_sectors and the journal page list were computed with the value that was present at constructor time. Increasing log2_sectors_per_block makes the index run past the end of the journal, and dm-integrity then writes 512 bytes through lowmem_page_address(NULL). Snapshot the validated superblock in the constructor and refuse to resume if any of the fields that describe the on-disk geometry changed.
Timeline
- CVE published
- First seen by cve.now
Affected versions
- Linux Linux
From 38625191f32f77a9d5fc7cc15f4f9b78768bfb33 · fixed in 454b67fcc28c18502e47dfb9f067b04c28628ada; From 118ba36e446c01e3cd34b3eedabf1d9436525e1d · fixed in e9ec5cbbaf4dd3a02ae3d81719f4fcb9b609aa8e; From 118ba36e446c01e3cd34b3eedabf1d9436525e1d · fixed in fc79aeb86a2c244c1f1894e2d8f2966fe2b60fa2; From 6.18.16 · fixed in 6.18.58; From 6.1.165 · fixed in 6.2; From 6.6.128 · fixed in 6.7; From 6.12.75 · fixed in 6.13; From 6.19.6 · fixed in 6.20
- Linux Linux
7.0
- KernelLinux
fixed in 6.18.58; From 6.19.0 · fixed in 7.2.12