CVE-2022-49828
hugetlbfs: don't delete error page from pagecache
Check your servers for CVE-2022-49828
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2022-49828 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
Description
In the Linux kernel, the following vulnerability has been resolved:
hugetlbfs: don't delete error page from pagecache
This change is very similar to the change that was made for shmem [1], and it solves the same problem but for HugeTLBFS instead.
Currently, when poison is found in a HugeTLB page, the page is removed from the page cache. That means that attempting to map or read that hugepage in the future will result in a new hugepage being allocated instead of notifying the user that the page was poisoned. As [1] states, this is effectively memory corruption.
The fix is to leave the page in the page cache. If the user attempts to use a poisoned HugeTLB page with a syscall, the syscall will fail with EIO, the same error code that shmem uses. For attempts to map the page, the thread will get a BUS_MCEERR_AR SIGBUS.
[1]: commit a76054266661 ("mm: shmem: don't truncate page if memory failure happens")
Exploitation
EPSS 0.20%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 10.8% of all scored CVEs. Scores of 1 Dec 2026.
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from 78bb920344b8a6f04b79a7c254041723b931c94f, before 30571f28bb35c826219971c63bcf60d2517112ed affected from 78bb920344b8a6f04b79a7c254041723b931c94f, before ec667443b2dbc6cdbbac4073e51a17733158ec6a affected from 78bb920344b8a6f04b79a7c254041723b931c94f, before 8625147cafaa9ba74713d682f5185eb62cb2aedb
Other versions: unaffected
|
| Linux |
affected 4.13 unaffected before 4.13 unaffected from 5.15.80 up to and including 5.15.* unaffected from 6.0.10 up to and including 6.0.* unaffected 6.1 and later
Other versions: affected
|
Is my server affected?
This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:
uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2022-49828 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2022-49828
With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2022-49828
trivy image --scanners vuln IMAGE | grep CVE-2022-49828
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Other references
- https://git.kernel.org/stable/c/30571f28bb35c826219971c63bcf60d2517112ed git.kernel.org
- https://git.kernel.org/stable/c/ec667443b2dbc6cdbbac4073e51a17733158ec6a git.kernel.org
- https://git.kernel.org/stable/c/8625147cafaa9ba74713d682f5185eb62cb2aedb git.kernel.org
Source: the record CVE-2022-49828 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse