CVE-2022-49989
Severity CVSS v4.0:
Pending analysis
Type:
CWE-476
NULL Pointer Dereference
Publication date:
18/06/2025
Last modified:
14/11/2025
Description
In the Linux kernel, the following vulnerability has been resolved:<br />
<br />
xen/privcmd: fix error exit of privcmd_ioctl_dm_op()<br />
<br />
The error exit of privcmd_ioctl_dm_op() is calling unlock_pages()<br />
potentially with pages being NULL, leading to a NULL dereference.<br />
<br />
Additionally lock_pages() doesn&#39;t check for pin_user_pages_fast()<br />
having been completely successful, resulting in potentially not<br />
locking all pages into memory. This could result in sporadic failures<br />
when using the related memory in user mode.<br />
<br />
Fix all of that by calling unlock_pages() always with the real number<br />
of pinned pages, which will be zero in case pages being NULL, and by<br />
checking the number of pages pinned by pin_user_pages_fast() matching<br />
the expected number of pages.
Impact
Base Score 3.x
5.50
Severity 3.x
MEDIUM
Vulnerable products and versions
| CPE | From | Up to |
|---|---|---|
| cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* | 4.11 (including) | 5.10.140 (excluding) |
| cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* | 5.11 (including) | 5.15.64 (excluding) |
| cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* | 5.16 (including) | 5.19.6 (excluding) |
| cpe:2.3:o:linux:linux_kernel:6.0:rc1:*:*:*:*:*:* | ||
| cpe:2.3:o:linux:linux_kernel:6.0:rc2:*:*:*:*:*:* |
To consult the complete list of CPE names with products and versions, see this page



