Bug 2373666 (CVE-2022-50181) - CVE-2022-50181 kernel: virtio-gpu: fix a missing check to avoid NULL dereference
Summary: CVE-2022-50181 kernel: virtio-gpu: fix a missing check to avoid NULL dereference
Keywords:
Status: NEW
Alias: CVE-2022-50181
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-06-18 12:12 UTC by OSIDB Bzimport
Modified: 2025-06-18 19:37 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2025-06-18 12:12:56 UTC
In the Linux kernel, the following vulnerability has been resolved:

virtio-gpu: fix a missing check to avoid NULL dereference

'cache_ent' could be set NULL inside virtio_gpu_cmd_get_capset()
and it will lead to a NULL dereference by a lately use of it
(i.e., ptr = cache_ent->caps_cache). Fix it with a NULL check.


[ kraxel: minor codestyle fixup ]

Comment 1 Avinash Hanwate 2025-06-18 19:28:18 UTC
Upstream advisory:
https://lore.kernel.org/linux-cve-announce/2025061833-CVE-2022-50181-f573@gregkh/T


Note You need to log in before you can comment on or make changes to this bug.