CVE-2024-26718CWE-787

CVE-2024-26718

High · published April 3, 2024

CVSS v3.1
7.8
EPSS
0%
Percentile
13.6
In the wild
Unconfirmed
What it is

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

dm-crypt, dm-verity: disable tasklets

Tasklets have an inherent problem with memory corruption. The function

tasklet_action_common calls tasklet_trylock, then it calls the tasklet

callback and then it calls tasklet_unlock. If the tasklet callback frees

the structure that contains the tasklet or if it calls some code that may

free it, tasklet_unlock will write into free memory.

The commits 8e14f610159d and d9a02e016aaf try to fix it for dm-crypt, but

it is not a sufficient fix and the data corruption can still happen [1].

There is no fix for dm-verity and dm-verity will write into free memory

with every tasklet-processed bio.

There will be atomic workqueues implemented in the kernel 6.9 [2]. They

will have better interface and they will not suffer from the memory

corruption problem.

But we need something that stops the memory corruption now and that can be

backported to the stable kernels. So, I'm proposing this commit that

disables tasklets in both dm-crypt and dm-verity. This commit doesn't

remove the tasklet support, because the tasklet code will be reused when

atomic workqueues will be implemented.

[1] https://lore.kernel.org/all/[email protected]/T/

[2] https://lore.kernel.org/lkml/[email protected]/

The record
Technical detail
CVSS v3.1
7.8 · HIGH
Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.00235 · 13.6th percentile
Weakness
CWE-787 · Out-of-bounds Write
Published
2024-04-03T19:15Z
Affected products (5)
ProductVersionsFixed in
linux/linux_kernel≥ 5.9, < 6.1.796.1.79
linux/linux_kernel≥ 6.2, < 6.6.186.6.18
linux/linux_kernel≥ 6.7, < 6.7.66.7.6
linux/linux_kernelall versions—
linux/linux_kernelall versions—
References (9)
EPSS history
Timeline
  • 03 APR 14:55Z
    dm-crypt, dm-verity: disable tasklets
    cvelistv5