CVE-2022-49989

MEDIUM

Linux Kernel 4.11-5.10.140, 5.11-5.15.64, 5.16-5.19.6 - NULL Pointer Dereference in privcmd_ioctl_dm_op

Title source: llm
STIX 2.1

Description

In the Linux kernel, the following vulnerability has been resolved: xen/privcmd: fix error exit of privcmd_ioctl_dm_op() The error exit of privcmd_ioctl_dm_op() is calling unlock_pages() potentially with pages being NULL, leading to a NULL dereference. Additionally lock_pages() doesn't check for pin_user_pages_fast() having been completely successful, resulting in potentially not locking all pages into memory. This could result in sporadic failures when using the related memory in user mode. Fix all of that by calling unlock_pages() always with the real number of pinned pages, which will be zero in case pages being NULL, and by checking the number of pages pinned by pin_user_pages_fast() matching the expected number of pages.

Scores

CVSS v3 5.5
EPSS 0.0020
EPSS Percentile 9.7%
Attack Vector LOCAL
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

Details

CWE
CWE-476
Status published
Products (15)
linux/Kernel 4.11.0 - 5.10.140linux
linux/Kernel 5.11.0 - 5.15.64linux
linux/Kernel 5.16.0 - 5.19.6linux
Linux/Linux < 4.11
Linux/Linux 4.11
Linux/Linux 5.10.140 - 5.10.*
Linux/Linux 5.15.64 - 5.15.*
Linux/Linux 5.19.6 - 5.19.*
Linux/Linux 6.0
Linux/Linux ab520be8cd5d56867fc95cfbc34b90880faf1f9d - 45d47bd9b96e7874b98dbcc7602fe2826c5d62a6
... and 5 more
Published Jun 18, 2025
Tracked Since Feb 18, 2026