CVE-2026-53062
Severity CVSS v4.0:
Pending analysis
Type:
Unavailable / Other
Publication date:
24/06/2026
Last modified:
21/07/2026
Description
In the Linux kernel, the following vulnerability has been resolved:<br />
<br />
dm cache policy smq: fix missing locks in invalidating cache blocks<br />
<br />
In passthrough mode, the policy invalidate_mapping operation is called<br />
simultaneously from multiple workers, thus it should be protected by a<br />
lock. Otherwise, we might end up with data races on the allocated blocks<br />
counter, or even use-after-free issues with internal data structures<br />
when doing concurrent writes.<br />
<br />
Note that the existing FIXME in smq_invalidate_mapping() doesn&#39;t affect<br />
passthrough mode since migration tasks don&#39;t exist there, but would need<br />
attention if supporting fast device shrinking via suspend/resume without<br />
target reloading.<br />
<br />
Reproduce steps:<br />
<br />
1. Create a cache device consisting of 1024 cache entries<br />
<br />
dmsetup create cmeta --table "0 8192 linear /dev/sdc 0"<br />
dmsetup create cdata --table "0 131072 linear /dev/sdc 8192"<br />
dmsetup create corig --table "0 262144 linear /dev/sdc 262144"<br />
dd if=/dev/zero of=/dev/mapper/cmeta bs=4k count=1 oflag=direct<br />
dmsetup create cache --table "0 262144 cache /dev/mapper/cmeta \<br />
/dev/mapper/cdata /dev/mapper/corig 128 2 metadata2 writethrough smq 0"<br />
<br />
2. Populate the cache, and record the number of cached blocks<br />
<br />
fio --name=populate --filename=/dev/mapper/cache --rw=randwrite --bs=4k \<br />
--size=64m --direct=1<br />
nr_cached=$(dmsetup status cache | awk &#39;{split($7, a, "/"); print a[1]}&#39;)<br />
<br />
3. Reload the cache into passthrough mode<br />
<br />
dmsetup suspend cache<br />
dmsetup reload cache --table "0 262144 cache /dev/mapper/cmeta \<br />
/dev/mapper/cdata /dev/mapper/corig 128 2 metadata2 passthrough smq 0"<br />
dmsetup resume cache<br />
<br />
4. Write to the passthrough cache. By setting multiple jobs with I/O<br />
size equal to the cache block size, cache blocks are invalidated<br />
concurrently from different workers.<br />
<br />
fio --filename=/dev/mapper/cache --name=test --rw=randwrite --bs=64k \<br />
--direct=1 --numjobs=2 --randrepeat=0 --size=64m<br />
<br />
5. Check if demoted matches cached block count. These numbers should<br />
match but may differ due to the data race.<br />
<br />
nr_demoted=$(dmsetup status cache | awk &#39;{print $12}&#39;)<br />
echo "$nr_cached, $nr_demoted"
Impact
Base Score 3.x
7.80
Severity 3.x
HIGH
Vulnerable products and versions
| CPE | From | Up to |
|---|---|---|
| cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* | 4.12 (including) | 5.10.258 (excluding) |
| cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* | 5.11 (including) | 5.15.209 (excluding) |
| cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* | 5.16 (including) | 6.1.175 (excluding) |
| cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* | 6.2 (including) | 6.6.141 (excluding) |
| cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* | 6.7 (including) | 6.12.91 (excluding) |
| cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* | 6.13 (including) | 6.18.33 (excluding) |
| cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* | 6.19 (including) | 7.0.10 (excluding) |
To consult the complete list of CPE names with products and versions, see this page
References to Advisories, Solutions, and Tools
- https://git.kernel.org/stable/c/1b2bec4a7dcf5f00b7a1cbeeec8997841d783513
- https://git.kernel.org/stable/c/2b62d0611c9af14a16bddf22df2612b4f40eb5a1
- https://git.kernel.org/stable/c/2d1f7b65f5deedd2e6b09fdc6ea27f8375f24b45
- https://git.kernel.org/stable/c/4991b5a08751e2e82488fb93ae08849b6aea10d9
- https://git.kernel.org/stable/c/93627a29d4b66d4a2def938dfb8610cc80ae454b
- https://git.kernel.org/stable/c/9a5fdfb9e57ec3a8ad2b8fce5e5ffa42d53b130e
- https://git.kernel.org/stable/c/ac5ee99443891bdb161f5539606a66a1b5e72542
- https://git.kernel.org/stable/c/c348ae47d8e65f06429fa41adce9ad986b696766



