CVE-2022-48661

gpio: mockup: Fix potential resource leakage when register a chip

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 potential resource leakage when register a chip If creation of software node fails, the locally allocated string array is left unfreed. Free it on error path.

Affected

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

5.15 ≤ v < 5.15.715.15 ≤ v < 5.19.125.15 ≤ v < 6.05.16 ≤ v < 5.19.125.156fda593f3082ef1aa783ac13e89f673fd69a2cb6
Vendor states this is fixed in 02743c4091ccfb246f5cdbbe3f44b152d5d12933 (fixed)
Vendor states this is fixed in 41f857033c44442a27f591fda8d986e7c9e42872 (fixed)
Vendor states this is fixed in 9b26723e058faaf11b532fb4aa16d6849d581790 (fixed)
Vendor states this is fixed in 5.15 (unaffected)
Vendor states this is fixed in 5.15.71 (unaffected)
Vendor states this is fixed in 5.19.12 (unaffected)
Vendor states this is fixed in 6.0 (unaffected)

References (3)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/02743c4091ccfb246f5cdbbe3f44b152d5d12933
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/41f857033c44442a27f591fda8d986e7c9e42872
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/9b26723e058faaf11b532fb4aa16d6849d581790

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

StatusMODIFIED
CWE
CWE-404

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