CVE 7.8 HIGH

dm cache policy smq: check allocation under invalidate lock_CVE-2026-53265

7.8 / 10
HIGH
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Description

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

dm cache policy smq: check allocation under invalidate lock

commit 2d1f7b65f5de ("dm cache policy smq: fix missing locks in
invalidating cache blocks") added mq->lock around the destructive part of
smq_invalidate_mapping(), but left the e->allocated check outside the
critical section.

That leaves a check-then-act race. Two concurrent invalidators can both
observe e->allocated as true before either of them takes mq->lock. The
first invalidator that acquires the lock removes the entry from the
queues and hash table and then calls free_entry(), which clears
e->allocated and puts the entry back on the free list. The second
invalidator can then acquire mq->lock and continue with the stale result
of the unlocked check.

This can corrupt the SMQ queues or hash table by deleting an entry that
is no longer on those structures. It can also hit the allocation check in
free_entry() when the same entry is freed again.

Move the allocation check under mq->lock so the predicate and the
destructive operations are serialized by the same lock.

Basic Information

ID CVE-2026-53265
Source Linux
Published Jun 25, 2026 at 08:39
Modified Jun 28, 2026 at 06:41

Affected Product

Vendor Linux
Product Linux
Version 4991b5a08751e2e82488fb93ae08849b6aea10d9
Affected Versions Linux Linux 4991b5a08751e2e82488fb93ae08849b6aea10d9
Linux Linux 1b2bec4a7dcf5f00b7a1cbeeec8997841d783513
Linux Linux 9a5fdfb9e57ec3a8ad2b8fce5e5ffa42d53b130e
Linux Linux ac5ee99443891bdb161f5539606a66a1b5e72542
Linux Linux 93627a29d4b66d4a2def938dfb8610cc80ae454b
Linux Linux c348ae47d8e65f06429fa41adce9ad986b696766
Linux Linux 2b62d0611c9af14a16bddf22df2612b4f40eb5a1
Linux Linux 2d1f7b65f5deedd2e6b09fdc6ea27f8375f24b45
Linux Linux 5.10.258
Linux Linux 5.15.209
Linux Linux 6.1.175
Linux Linux 6.6.141
Linux Linux 6.12.91
Linux Linux 6.18.33
Linux Linux 7.0.10

References

💭 Join the Security Discussion

🔒 Your email address will not be published. Required fields are marked *

⚠️ Please be respectful and constructive in your comments. Security discussions should remain professional.