CVE-2022-49989 Details
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.
A vulnerability in the Linux kernel's handling of privileged command operations can lead to a NULL pointer dereference. This issue arises in the privcmd_ioctl_dm_op() function, where unlock_pages() may be called with NULL pages, causing a NULL dereference. Additionally, the lock_pages() function does not fully verify the success of pin_user_pages_fast(), potentially leading to incomplete locking of pages in memory. Such discrepancies could cause intermittent failures when the associated memory is accessed in user mode. The vulnerability affects several versions of the Linux kernel.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Nov 5, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://git.kernel.org/stable/c/45d47bd9b96e7874b98dbcc7602fe2826c5d62a6 | kernel.org | Patch |
| https://git.kernel.org/stable/c/6de50db104af0dc921f593fd95c55db86a52ceef | kernel.org | Patch |
| https://git.kernel.org/stable/c/c2b7bae7c90051fd6a679d5dee00400d67ebbf4a | kernel.org | Patch |
| https://git.kernel.org/stable/c/c5deb27895e017a0267de0a20d140ad5fcc55a54 | kernel.org | Patch |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-476 | NULL Pointer Dereference | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| linux linux kernel | >= 4.11, < 5.10.140 >= 5.11, < 5.15.64 >= 5.16, < 5.19.6 6.0 rc1 6.0 rc2 |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Nov 5, 2026 | CVE Modified | kernel.org |
| Nov 5, 2026 | CVE Modified | CISA-ADP |
| Jun 17, 2026 | CVE Modified | kernel.org |
| Nov 14, 2025 | Initial Analysis | [email protected] |
| Jun 18, 2025 | New CVE Received | kernel.org |