LiveActive security incident?Get immediate response
CVE Record

CVE-2022-50628: drm/gud: Fix UBSAN warning

In the Linux kernel, the following vulnerability has been resolved: drm/gud: Fix UBSAN warning UBSAN complains about invalid value for bool: [ 101.165172] [drm] Initialized gud 1.0.0 20200422 for 2-3.2:1.0 on minor 1 [ 101.213360] gud 2-3.2:1.0: [drm] fb1: guddrmfb frame buffer device [ 101.213426] usbcore: registered new interface driver gud [ 101.989431] ================================================================================ [ 101.989441] UBSAN: invalid-load in linux/include/linux/iosys-map.h:253:9 [ 101.989447] load of value 121 is not a valid value for type '_Bool' [ 101.989451] CPU: 1 PID: 455 Comm: kworker/1:6 Not tainted 5.18.0-rc5-gud-5.18-rc5 #3 [ 101.989456] Hardware name: Hewlett-Packard HP EliteBook 820 G1/1991, BIOS L71 Ver. 01.44 04/12/2018 [ 101.989459] Workqueue: events_long gud_flush_work [gud] [ 101.989471] Call Trace: [ 101.989474] <TASK> [ 101.989479] dump_stack_lvl+0x49/0x5f [ 101.989488] dump_stack+0x10/0x12 [ 101.989493] ubsan_epilogue+0x9/0x3b [ 101.989498] __ubsan_handle_load_invalid_value.cold+0x44/0x49 [ 101.989504] dma_buf_vmap.cold+0x38/0x3d [ 101.989511] ? find_busiest_group+0x48/0x300 [ 101.989520] drm_gem_shmem_vmap+0x76/0x1b0 [drm_shmem_helper] [ 101.989528] drm_gem_shmem_object_vmap+0x9/0xb [drm_shmem_helper] [ 101.989535] drm_gem_vmap+0x26/0x60 [drm] [ 101.989594] drm_gem_fb_vmap+0x47/0x150 [drm_kms_helper] [ 101.989630] gud_prep_flush+0xc1/0x710 [gud] [ 101.989639] ? _raw_spin_lock+0x17/0x40 [ 101.989648] gud_flush_work+0x1e0/0x430 [gud] [ 101.989653] ? __switch_to+0x11d/0x470 [ 101.989664] process_one_work+0x21f/0x3f0 [ 101.989673] worker_thread+0x200/0x3e0 [ 101.989679] ? rescuer_thread+0x390/0x390 [ 101.989684] kthread+0xfd/0x130 [ 101.989690] ? kthread_complete_and_exit+0x20/0x20 [ 101.989696] ret_from_fork+0x22/0x30 [ 101.989706] </TASK> [ 101.989708] ================================================================================ The source of this warning is in iosys_map_clear() called from dma_buf_vmap(). It conditionally sets values based on map->is_iomem. The iosys_map variables are allocated uninitialized on the stack leading to ->is_iomem having all kinds of values and not only 0/1. Fix this by zeroing the iosys_map variables.

UnknownCVSS not scoredNot KEV-listedUpdated
Glexia's TakeAutomated analysislow

Security readout for executives and security teams

Plain-English summary

CVE-2022-50628 is a Linux kernel issue in the DRM GUD display driver. The documented problem is an uninitialized stack value causing a UBSAN warning during display flush handling. Public sources do not show active exploitation, a CVSS score, or a clear confidentiality/integrity impact.

Executive priority

Treat as routine kernel hygiene unless your environment relies on USB display devices using the GUD driver. Prioritize through normal kernel update cycles, and escalate only if vendor advisories assign higher severity or affected systems are business-critical.

Technical view

In drm/gud, iosys_map variables were allocated uninitialized on the stack. dma_buf_vmap() later reads map->is_iomem as a bool, producing an invalid-load UBSAN warning when the value is not 0 or 1. The kernel fix zeroes the iosys_map variables.

Likely exposure

Exposure appears limited to Linux systems running affected kernel versions with the DRM GUD driver path in use, such as Generic USB Display workflows. Systems without this driver loaded or relevant USB display use are less likely to encounter the issue.

Exploitation context

No cited source reports exploitation in the wild, and the CVE is not marked KEV. The available evidence describes a runtime sanitizer warning and code correctness fix, not a demonstrated privilege escalation, data leak, or remote attack path.

Researcher notes

The public record lacks CVSS, CWE, and exploitability analysis. The described root cause is uninitialized bool state in iosys_map handling, fixed by zero-initialization. Further assessment should focus on whether the invalid state can cause more than diagnostics or instability.

Mitigation direction

  • Update to a Linux kernel build that includes the referenced stable fixes.
  • Use distribution vendor advisories to identify patched kernel package versions.
  • If unable to update, review whether DRM GUD support is needed.
  • Monitor vendor guidance for any revised severity or backport information.

Validation and detection

  • Inventory Linux kernel versions across affected systems.
  • Check whether the GUD driver is present or used.
  • Review kernel package changelogs for the referenced stable commit IDs.
  • Look for UBSAN invalid-load messages involving iosys_map, dma_buf_vmap, or gud_flush_work.
Prepared
Confidence
medium
Sources
5

Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.

Potential ATT&CK relevance

Conservative CVE-to-ATT&CK context

These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.

ATT&CK lookup starting points

Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.

cve · low confidence lookup

CVE-2022-50628 mapping review

Open the CVE-to-ATT&CK bridge for reviewed, inferred, or future official mappings tied to this CVE.

Open ATT&CK lookup
Vulnerability profileCVE Program record
Severity
Unknown
CVSS
Not scored
Known Exploited
No
Published
Official CVE source material

CNA and ADP enrichment extracted from CVE v5

These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.

0CVSS vectors
0Timeline events
0ADP providers
4Source links

CVSS and timeline data

No CVSS vectors or timeline events were available in the normalized CVE source material.

Affected products

Products and packages named in the record

VendorProductVersion / packageStatus
LinuxLinux40e1a70b4aedf2859a1829991b48ef0ebe650bf2, 40e1a70b4aedf2859a1829991b48ef0ebe650bf2, 40e1a70b4aedf2859a1829991b48ef0ebe650bf2unaffected
LinuxLinux5.13, 0, 6.1.16, 6.2.3, 6.3affected
Weakness

CWE details

No CWE listed

CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.