CVE-2021-47649

Source
https://cve.org/CVERecord?id=CVE-2021-47649
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-47649.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2021-47649
Downstream
Related
Published
2025-02-26T06:37:06.687Z
Modified
2026-03-15T22:43:16.302161Z
Severity
  • 5.5 (Medium) CVSS_V3 - CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H CVSS Calculator
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

Git /

Affected ranges

Database specific

unresolved_ranges
[
    {
        "events": [
            {
                "introduced": "4.20"
            },
            {
                "fixed": "5.4.189"
            }
        ]
    },
    {
        "events": [
            {
                "introduced": "5.5"
            },
            {
                "fixed": "5.10.110"
            }
        ]
    },
    {
        "events": [
            {
                "introduced": "5.11"
            },
            {
                "fixed": "5.15.33"
            }
        ]
    },
    {
        "events": [
            {
                "introduced": "5.16"
            },
            {
                "fixed": "5.16.19"
            }
        ]
    },
    {
        "events": [
            {
                "introduced": "5.17"
            },
            {
                "fixed": "5.17.2"
            }
        ]
    }
]
source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-47649.json"