CVE-2021-47649

udmabuf: validate ubuf->pagecount

No CVSS score yet EPSS 0.25%

Published 26 Feb 2025 Updated 11 May 2026 CNA: Linux

Check your servers for CVE-2021-47649

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-2021-47649 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.

Check my servers

Description

In the Linux kernel, the following vulnerability has been resolved:

udmabuf: validate ubuf->pagecount

Syzbot has reported GPF in sg_alloc_append_table_from_pages(). The problem was in ubuf->pages == ZERO_PTR.

ubuf->pagecount is calculated from arguments passed from user-space. If user creates udmabuf with list.size == 0 then ubuf->pagecount will be also equal to zero; it causes kmalloc_array() to return ZERO_PTR.

Fix it by validating ubuf->pagecount before passing it to kmalloc_array().

Exploitation

EPSS 0.25%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 17.1% of all scored CVEs. Scores of 1 Dec 2026.

Affected products

As the CNA lists them.

ProductVersions
Linux
affected from fbb0de795078190a9834b3409e4b009cfb18a6d4, before 5d50f851dd307c07ca5591297093f19967c834a9
affected from fbb0de795078190a9834b3409e4b009cfb18a6d4, before b267a8118c2b171bf7d67b90ed64154eeab9fae0
affected from fbb0de795078190a9834b3409e4b009cfb18a6d4, before 811b667cefbea9cb7511a874b169d6a92907137e
affected from fbb0de795078190a9834b3409e4b009cfb18a6d4, before a3728d32fc61eb0fe283cb8ff60b2c8f751e2202
affected from fbb0de795078190a9834b3409e4b009cfb18a6d4, before 9e9b4a269f84d3230f2af84ff42322db676440d9
affected from fbb0de795078190a9834b3409e4b009cfb18a6d4, before 2b6dd600dd72573c23ea180b5b0b2f1813405882
Other versions: unaffected
Linux
affected 4.20
unaffected before 4.20
unaffected from 5.4.189 up to and including 5.4.*
unaffected from 5.10.110 up to and including 5.10.*
unaffected from 5.15.33 up to and including 5.15.*
unaffected from 5.16.19 up to and including 5.16.*
unaffected from 5.17.2 up to and including 5.17.*
unaffected 5.18 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-2021-47649 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2021-47649

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-2021-47649
trivy image --scanners vuln IMAGE | grep CVE-2021-47649

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

Source: the record CVE-2021-47649 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.