CVE-2021-47649

Source
https://nvd.nist.gov/vuln/detail/CVE-2021-47649
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2021-47649.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2021-47649
Downstream
Related
Published
2025-02-26T06:37:06Z
Modified
2025-08-09T20:01:26Z
Summary
[none]
Details

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

udmabuf: validate ubuf->pagecount

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

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 kmallocarray() to return ZEROPTR.

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

References

Affected packages