{"id":"CVE-2026-53265","summary":"dm cache policy smq: check allocation under invalidate lock","details":"In the Linux kernel, the following vulnerability has been resolved:\n\ndm cache policy smq: check allocation under invalidate lock\n\ncommit 2d1f7b65f5de (\"dm cache policy smq: fix missing locks in\ninvalidating cache blocks\") added mq-\u003elock around the destructive part of\nsmq_invalidate_mapping(), but left the e-\u003eallocated check outside the\ncritical section.\n\nThat leaves a check-then-act race. Two concurrent invalidators can both\nobserve e-\u003eallocated as true before either of them takes mq-\u003elock. The\nfirst invalidator that acquires the lock removes the entry from the\nqueues and hash table and then calls free_entry(), which clears\ne-\u003eallocated and puts the entry back on the free list. The second\ninvalidator can then acquire mq-\u003elock and continue with the stale result\nof the unlocked check.\n\nThis can corrupt the SMQ queues or hash table by deleting an entry that\nis no longer on those structures. It can also hit the allocation check in\nfree_entry() when the same entry is freed again.\n\nMove the allocation check under mq-\u003elock so the predicate and the\ndestructive operations are serialized by the same lock.","modified":"2026-06-27T12:02:28.376097550Z","published":"2026-06-25T08:39:52.543Z","database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/53xxx/CVE-2026-53265.json"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/03ffe1112ed88bb3a9bd0b971549bf4d64bfc59a"},{"type":"WEB","url":"https://git.kernel.org/stable/c/13da856c86fb8c2ccab95034fd77da1bb2c2a17c"},{"type":"WEB","url":"https://git.kernel.org/stable/c/42ff6774ecd9d7f70d599cb71ff64373a1da4948"},{"type":"WEB","url":"https://git.kernel.org/stable/c/b4892561552d671bd8c4da5ebb70e9fbb1ec446e"},{"type":"WEB","url":"https://git.kernel.org/stable/c/c242c7af2aecf0b538b8623bdb86b8b441da38d9"},{"type":"WEB","url":"https://git.kernel.org/stable/c/c57570fba24016ec25ec046ab44db39143fb7a64"},{"type":"WEB","url":"https://git.kernel.org/stable/c/d3f0a606b9f278ece8a0df626ded9c4044071235"},{"type":"WEB","url":"https://git.kernel.org/stable/c/d886945fcb0f8c9dc6b39928d7a96c95c587346c"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/53xxx/CVE-2026-53265.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-53265"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"4991b5a08751e2e82488fb93ae08849b6aea10d9"},{"fixed":"c242c7af2aecf0b538b8623bdb86b8b441da38d9"}]},{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"1b2bec4a7dcf5f00b7a1cbeeec8997841d783513"},{"fixed":"13da856c86fb8c2ccab95034fd77da1bb2c2a17c"}]},{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"9a5fdfb9e57ec3a8ad2b8fce5e5ffa42d53b130e"},{"fixed":"d886945fcb0f8c9dc6b39928d7a96c95c587346c"}]},{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"ac5ee99443891bdb161f5539606a66a1b5e72542"},{"fixed":"b4892561552d671bd8c4da5ebb70e9fbb1ec446e"}]},{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"93627a29d4b66d4a2def938dfb8610cc80ae454b"},{"fixed":"03ffe1112ed88bb3a9bd0b971549bf4d64bfc59a"}]},{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"c348ae47d8e65f06429fa41adce9ad986b696766"},{"fixed":"42ff6774ecd9d7f70d599cb71ff64373a1da4948"}]},{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"2b62d0611c9af14a16bddf22df2612b4f40eb5a1"},{"fixed":"c57570fba24016ec25ec046ab44db39143fb7a64"}]},{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"2d1f7b65f5deedd2e6b09fdc6ea27f8375f24b45"},{"fixed":"d3f0a606b9f278ece8a0df626ded9c4044071235"}]}],"versions":["v5.10.258","v5.15.209","v6.1.175","v6.6.142","v6.6.141","v6.12.93","v6.12.92","v6.12.91","v6.18.35","v6.18.34","v6.18.33","v7.0.12","v7.0.11","v7.0.10"],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2026-53265.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"5.10.258"},{"fixed":"5.10.259"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.15.209"},{"fixed":"5.15.210"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.1.175"},{"fixed":"6.1.176"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.6.141"},{"fixed":"6.6.143"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.12.91"},{"fixed":"6.12.94"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.18.33"},{"fixed":"6.18.36"}]},{"type":"ECOSYSTEM","events":[{"introduced":"7.0.10"},{"fixed":"7.0.13"}]}],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2026-53265.json"}}],"schema_version":"1.7.5"}