CVE-2021-47649

MediumCVSS 5.5/10Last modified Jun 17, 2026

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().

Metrics

CVSS 3.1 5.5/10CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

Affected software

VendorProductVersions
LinuxLinux>= fbb0de795078190a9834b3409e4b009cfb18a6d4, < 5d50f851dd307c07ca5591297093f19967c834a9; >= fbb0de795078190a9834b3409e4b009cfb18a6d4, < b267a8118c2b171bf7d67b90ed64154eeab9fae0; >= fbb0de795078190a9834b3409e4b009cfb18a6d4, < 811b667cefbea9cb7511a874b169d6a92907137e; >= fbb0de795078190a9834b3409e4b009cfb18a6d4, < a3728d32fc61eb0fe283cb8ff60b2c8f751e2202; >= fbb0de795078190a9834b3409e4b009cfb18a6d4, < 9e9b4a269f84d3230f2af84ff42322db676440d9; >= fbb0de795078190a9834b3409e4b009cfb18a6d4, < 2b6dd600dd72573c23ea180b5b0b2f1813405882
LinuxLinux4.20

References

Timeline

Published
Feb 26, 2025
Last modified
Jun 17, 2026
NVD status
Analyzed

Related CVEs from 2021

CVE-2021-476505.5In the Linux kernel, the following vulnerability has been resolved: ASoC: soc-compress: prevent the potentially use of null pointer There CVE-2021-476515.5In the Linux kernel, the following vulnerability has been resolved: soc: qcom: rpmpd: Check for null return of devm_kcalloc Because of theCVE-2021-476525.5In the Linux kernel, the following vulnerability has been resolved: video: fbdev: smscufx: Fix null-ptr-deref in ufx_usb_probe() I got a nCVE-2021-476537.8In the Linux kernel, the following vulnerability has been resolved: media: davinci: vpif: fix use-after-free on driver unbind The driver aCVE-2021-476545.5In the Linux kernel, the following vulnerability has been resolved: samples/landlock: Fix path_list memory leak Clang static analysis repoCVE-2021-476555.5In the Linux kernel, the following vulnerability has been resolved: media: venus: vdec: fixed possible memory leak issue The venus_helper_CVE-2021-476567.8In the Linux kernel, the following vulnerability has been resolved: jffs2: fix use-after-free in jffs2_clear_xattr_subsystem When we mountCVE-2021-476575.5In the Linux kernel, the following vulnerability has been resolved: drm/virtio: Ensure that objs is not NULL in virtio_gpu_array_put_free()CVE-2021-476585.5In the Linux kernel, the following vulnerability has been resolved: drm/amd/pm: fix a potential gpu_metrics_table memory leak Memory is alCVE-2021-476595.5In the Linux kernel, the following vulnerability has been resolved: drm/plane: Move range check for format_count earlier While the check fCVE-2021-476605.5In the Linux kernel, the following vulnerability has been resolved: fs/ntfs3: Fix some memory leaks in an error handling path of 'log_replaCVE-2021-476627.5Due to missing authorization an unauthenticated remote attacker can cause a DoS attack by connecting via HTTPS and triggering the shutdown b
CVE-2021-47649: Medium severity, CVSS 5.5 | Vulnix