# CVE-2026-53062: dm cache policy smq: fix missing locks in invalidating cache blocks

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.13% (percentile 1, 2026-11-28)
- **CWE:** CWE-667, CWE-362
- **Published:** 2026-06-24T16:30:06.189Z
- **Modified:** 2026-10-19T20:18:57.460Z

## Who should check

- Anyone running Linux \>= b29d4986d0da1a27cd35917cdb433672f5c95d7f, \< 4991b5a08751e2e82488fb93ae08849b6aea10d9; \>= b29d4986d0da1a27cd35917cdb433672f5c95d7f, \< 1b2bec4a7dcf5f00b7a1cbeeec8997841d783513; \>= b29d4986d0da1a27cd35917cdb433672f5c95d7f, \< 9a5fdfb9e57ec3a8ad2b8fce5e5ffa42d53b130e; \>= b29d4986d0da1a27cd35917cdb433672f5c95d7f, \< ac5ee99443891bdb161f5539606a66a1b5e72542; \>= b29d4986d0da1a27cd35917cdb433672f5c95d7f, \< 93627a29d4b66d4a2def938dfb8610cc80ae454b; \>= b29d4986d0da1a27cd35917cdb433672f5c95d7f, \< c348ae47d8e65f06429fa41adce9ad986b696766; \>= b29d4986d0da1a27cd35917cdb433672f5c95d7f, \< 2b62d0611c9af14a16bddf22df2612b4f40eb5a1; \>= b29d4986d0da1a27cd35917cdb433672f5c95d7f, \< 2d1f7b65f5deedd2e6b09fdc6ea27f8375f24b45
- Anyone running Linux 4.12

## Description

In the Linux kernel, the following vulnerability has been resolved:

dm cache policy smq: fix missing locks in invalidating cache blocks

In passthrough mode, the policy invalidate\_mapping operation is called
simultaneously from multiple workers, thus it should be protected by a
lock. Otherwise, we might end up with data races on the allocated blocks
counter, or even use-after-free issues with internal data structures
when doing concurrent writes.

Note that the existing FIXME in smq\_invalidate\_mapping() doesn't affect
passthrough mode since migration tasks don't exist there, but would need
attention if supporting fast device shrinking via suspend/resume without
target reloading.

Reproduce steps:

1. Create a cache device consisting of 1024 cache entries

dmsetup create cmeta --table "0 8192 linear /dev/sdc 0"
dmsetup create cdata --table "0 131072 linear /dev/sdc 8192"
dmsetup create corig --table "0 262144 linear /dev/sdc 262144"
dd if=/dev/zero of=/dev/mapper/cmeta bs=4k count=1 oflag=direct
dmsetup create cache --table "0 262144 cache /dev/mapper/cmeta \\
/dev/mapper/cdata /dev/mapper/corig 128 2 metadata2 writethrough smq 0"

2. Populate the cache, and record the number of cached blocks

fio --name=populate --filename=/dev/mapper/cache --rw=randwrite --bs=4k \\
--size=64m --direct=1
nr\_cached=$(dmsetup status cache \| awk '{split($7, a, "/"); print a\[1\]}')

3. Reload the cache into passthrough mode

dmsetup suspend cache
dmsetup reload cache --table "0 262144 cache /dev/mapper/cmeta \\
/dev/mapper/cdata /dev/mapper/corig 128 2 metadata2 passthrough smq 0"
dmsetup resume cache

4. Write to the passthrough cache. By setting multiple jobs with I/O
   size equal to the cache block size, cache blocks are invalidated
   concurrently from different workers.

fio --filename=/dev/mapper/cache --name=test --rw=randwrite --bs=64k \\
--direct=1 --numjobs=2 --randrepeat=0 --size=64m

5. Check if demoted matches cached block count. These numbers should
   match but may differ due to the data race.

nr\_demoted=$(dmsetup status cache \| awk '{print $12}')
echo "$nr\_cached, $nr\_demoted"

## Affected and fixed versions

- Linux: \>= b29d4986d0da1a27cd35917cdb433672f5c95d7f, \< 4991b5a08751e2e82488fb93ae08849b6aea10d9; \>= b29d4986d0da1a27cd35917cdb433672f5c95d7f, \< 1b2bec4a7dcf5f00b7a1cbeeec8997841d783513; \>= b29d4986d0da1a27cd35917cdb433672f5c95d7f, \< 9a5fdfb9e57ec3a8ad2b8fce5e5ffa42d53b130e; \>= b29d4986d0da1a27cd35917cdb433672f5c95d7f, \< ac5ee99443891bdb161f5539606a66a1b5e72542; \>= b29d4986d0da1a27cd35917cdb433672f5c95d7f, \< 93627a29d4b66d4a2def938dfb8610cc80ae454b; \>= b29d4986d0da1a27cd35917cdb433672f5c95d7f, \< c348ae47d8e65f06429fa41adce9ad986b696766; \>= b29d4986d0da1a27cd35917cdb433672f5c95d7f, \< 2b62d0611c9af14a16bddf22df2612b4f40eb5a1; \>= b29d4986d0da1a27cd35917cdb433672f5c95d7f, \< 2d1f7b65f5deedd2e6b09fdc6ea27f8375f24b45 (cvelist)
- Linux: 4.12 (cvelist)

## Mitigation

- Upgrade Linux to 2d1f7b65f5deedd2e6b09fdc6ea27f8375f24b45 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-53062. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-53062.md
Affected: Linux >= b29d4986d0da1a27cd35917cdb433672f5c95d7f, < 4991b5a08751e2e82488fb93ae08849b6aea10d9; >= b29d4986d0da1a27cd35917cdb433672f5c95d7f, < 1b2bec4a7dcf5f00b7a1cbeeec8997841d783513; >= b29d4986d0da1a27cd35917cdb433672f5c95d7f, < 9a5fdfb9e57ec3a8ad2b8fce5e5ffa42d53b130e; >= b29d4986d0da1a27cd35917…
Fixed in: Linux 4991b5a08751e2e82488fb93ae08849b6aea10d9, Linux 1b2bec4a7dcf5f00b7a1cbeeec8997841d783513, Linux 9a5fdfb9e57ec3a8ad2b8fce5e5ffa42d53b130e, Linux 93627a29d4b66d4a2def938dfb8610cc80ae454b, Linux 2b62d0611c9af14a16bddf22df2612b4f40eb5a1, Linux 2d1f7b65f5deedd2e6b09fdc6ea27f8375f24b45

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-53062 being exploited?

There is no confirmed exploitation: CVE-2026-53062 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.13% chance of exploitation in the next 30 days (as of 2026-11-28).

### How serious is CVE-2026-53062?

High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2026-53062?

Linux \>= b29d4986d0da1a27cd35917cdb433672f5c95d7f, \< 4991b5a08751e2e82488fb93ae08849b6aea10d9; \>= b29d4986d0da1a27cd35917cdb433672f5c95d7f, \< 1b2bec4a7dcf5f00b7a1cbeeec8997841d783513; \>= b29d4986d0da1a27cd35917cdb433672f5c95d7f, \< 9a5fdfb9e57ec3a8ad2b8fce5e5ffa42d53b130e; \>= b29d4986d0da1a27cd35917cdb433672f5c95d7f, \< ac5ee99443891bdb161f5539606a66a1b5e72542; \>= b29d4986d0da1a27cd35917cdb433672f5c95d7f, \< 93627a29d4b66d4a2def938dfb8610cc80ae454b; \>= b29d4986d0da1a27cd35917cdb433672f5c95d7f, \< c348ae47d8e65f06429fa41adce9ad986b696766; \>= b29d4986d0da1a27cd35917cdb433672f5c95d7f, \< 2b62d0611c9af14a16bddf22df2612b4f40eb5a1; \>= b29d4986d0da1a27cd35917cdb433672f5c95d7f, \< 2d1f7b65f5deedd2e6b09fdc6ea27f8375f24b45; Linux 4.12.

### Is there a fix for CVE-2026-53062?

Yes. Fixed in Linux 4991b5a08751e2e82488fb93ae08849b6aea10d9, Linux 1b2bec4a7dcf5f00b7a1cbeeec8997841d783513, Linux 9a5fdfb9e57ec3a8ad2b8fce5e5ffa42d53b130e, Linux 93627a29d4b66d4a2def938dfb8610cc80ae454b, Linux 2b62d0611c9af14a16bddf22df2612b4f40eb5a1, Linux 2d1f7b65f5deedd2e6b09fdc6ea27f8375f24b45. Upgrade Linux to 2d1f7b65f5deedd2e6b09fdc6ea27f8375f24b45 or later.

### How do I check if I'm affected by CVE-2026-53062?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/4991b5a08751e2e82488fb93ae08849b6aea10d9>
- patch: <https://git.kernel.org/stable/c/1b2bec4a7dcf5f00b7a1cbeeec8997841d783513>
- patch: <https://git.kernel.org/stable/c/9a5fdfb9e57ec3a8ad2b8fce5e5ffa42d53b130e>
- patch: <https://git.kernel.org/stable/c/ac5ee99443891bdb161f5539606a66a1b5e72542>
- patch: <https://git.kernel.org/stable/c/93627a29d4b66d4a2def938dfb8610cc80ae454b>
- patch: <https://git.kernel.org/stable/c/c348ae47d8e65f06429fa41adce9ad986b696766>
- patch: <https://git.kernel.org/stable/c/2b62d0611c9af14a16bddf22df2612b4f40eb5a1>
- patch: <https://git.kernel.org/stable/c/2d1f7b65f5deedd2e6b09fdc6ea27f8375f24b45>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-53062>

HTML: <https://flawdb.com/CVE-2026-53062> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-53062>
