dm stats: check for and propagate alloc_percpu failure
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ fd2ed4d252701d3bbed4cd3e3d267ad469bb832a · < a42180dd361584816bfe15c137b665699b994d90| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
dm stats: check for and propagate alloc_percpu failure
Check alloc_precpu()'s return value and return an error from dm_stats_init() if it fails. Update alloc_dev() to fail if dm_stats_init() does.
Otherwise, a NULL pointer dereference will occur in dm_stats_cleanup() even if dm-stats isn't being actively used.
From the CVE record · Linux
The Linux kernel’s dm stats initialization does not handle an alloc_percpu() failure. If that allocation fails, cleanup can dereference a NULL pointer even when dm-stats is not actively used, potentially crashing the kernel. The input does not establish whether an attacker can trigger the failure or specify access or user-interaction requirements.
Engineers running Linux kernels with dm stats should check their versions; affected versions are not specified.