CVE-2022-48663

gpio: mockup: fix NULL pointer dereference when removing debugfs

MEDIUM
5.5
CVSS Score
Published: April 28, 2024 at 01:01 PM UTC
Updated: June 17, 2026 at 05:15 AM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM5.5
Exploit prediction
EPSS 0.2%
SSVC
No known exploit

Description

In the Linux kernel, the following vulnerability has been resolved: gpio: mockup: fix NULL pointer dereference when removing debugfs We now remove the device's debugfs entries when unbinding the driver. This now causes a NULL-pointer dereference on module exit because the platform devices are unregistered *after* the global debugfs directory has been recursively removed. Fix it by unregistering the devices first.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

5.10.144 ≤ v < 5.10.1465.15.69 ≤ v < 5.15.715.19.10 ≤ v < 5.19.12303e6da99429510b1e4edf833afe90ac8542e7473815e66c2183f3430490e450ba16779cf5214ec63a10e8edee2b45a654f1f7b05f747129ec84cf9d5.10.1445.15.695.19.10bc55c1677edbe86a1c66a35e800df47dff16ad61
Vendor states this is fixed in 18352095a0d581f6aeb1e9fc9d68cc0152cd64b4 (fixed)
Vendor states this is fixed in af0bfabf06c74c260265c30ba81a34e7dec0e881 (fixed)
Vendor states this is fixed in b7df41a6f79dfb18ba2203f8c5f0e9c0b9b57f68 (fixed)
Vendor states this is fixed in bdea98b98f844bd8a983ca880893e509a8b4162f (fixed)
Affected range stops below 5.10.146, so it looks safe — our inference, not a vendor statement
Affected range stops below 5.15.71, so it looks safe — our inference, not a vendor statement
Affected range stops below 5.19.12, so it looks safe — our inference, not a vendor statement

References (4)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/18352095a0d581f6aeb1e9fc9d68cc0152cd64b4
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/af0bfabf06c74c260265c30ba81a34e7dec0e881
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/b7df41a6f79dfb18ba2203f8c5f0e9c0b9b57f68
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/bdea98b98f844bd8a983ca880893e509a8b4162f

SSVC — Action Prioritization

SSVCNo known exploitNot automatablePartial impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

Attack Vector
LOCAL
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
Vector?

Quick Info

StatusANALYZED
CWE
CWE-476

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card