CVE-2022-1280
Linux Kernel vulnerability analysis and mitigation

Overview

A use-after-free vulnerability (CVE-2022-1280) was discovered in the Linux kernel's DRM (Direct Rendering Manager) component, specifically in the drmleaseheld function within drivers/gpu/drm/drmlease.c. The vulnerability was reported on March 30, 2022, and publicly disclosed on April 12, 2022. This issue affects Linux kernel versions from 4.15rc1 onwards, as this was when the DRM lease infrastructure was introduced (NVD, [Bugzilla](https://bugzilla.redhat.com/showbug.cgi?id=2071022)).

Technical details

The vulnerability stems from a race condition where drmsetmasterioctl can free an old fpriv->master in drmnewsetmaster, while drmmodegetresources holds a freed fpriv->master in drmleaseheld due to the absence of proper locking mechanisms. The issue was addressed through four upstream patches that added locked versions of drmiscurrentmaster and implemented proper serialization of drmfile.master with a new spinlock (Openwall, [Bugzilla](https://bugzilla.redhat.com/showbug.cgi?id=2071022)).

Impact

The vulnerability could lead to use-after-free conditions in the Linux kernel's DRM subsystem, potentially resulting in system crashes or privilege escalation. The issue affects systems running Linux kernels with the DRM lease infrastructure enabled (NVD).

Mitigation and workarounds

The vulnerability was fixed in Linux kernel 5.15-rc1 through four patches that implement proper locking mechanisms. These patches include adding a locked version of drmiscurrentmaster, serializing drmfile.master with a new spinlock, protecting drmmaster pointers in drmlease.c, and using the lookup lock in drmiscurrentmaster. Red Hat has addressed this issue in Red Hat Enterprise Linux 9 through security advisories RHSA-2022:7933 and RHSA-2022:8267 ([Bugzilla](https://bugzilla.redhat.com/showbug.cgi?id=2071022)).

Additional resources


SourceThis report was generated using AI

Related Linux Kernel vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-40344N/AN/A
  • Linux KernelLinux Kernel
  • kernel-debug-modules-internal
NoYesDec 09, 2025
CVE-2025-40343N/AN/A
  • Linux KernelLinux Kernel
  • kernel-64k-debug-devel
NoYesDec 09, 2025
CVE-2025-40342N/AN/A
  • Linux KernelLinux Kernel
  • kernel-64k-debug-devel-matched
NoYesDec 09, 2025
CVE-2025-40341N/AN/A
  • Linux KernelLinux Kernel
  • kernel-rt-64k-debug-modules-extra
NoYesDec 09, 2025
CVE-2025-40340N/AN/A
  • Linux KernelLinux Kernel
  • kernel-rt-64k-debug-kvm
NoYesDec 09, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management