CVE-2022-50267

MEDIUM

Linux Kernel - NULL Pointer Dereference in MMC Host Addition

Title source: llm
STIX 2.1

Description

In the Linux kernel, the following vulnerability has been resolved: mmc: rtsx_pci: fix return value check of mmc_add_host() mmc_add_host() may return error, if we ignore its return value, the memory that allocated in mmc_alloc_host() will be leaked and it will lead a kernel crash because of deleting not added device in the remove path. So fix this by checking the return value and calling mmc_free_host() in the error path, beside, runtime PM also needs be disabled.

Scores

CVSS v3 5.5
EPSS 0.0014
EPSS Percentile 4.1%
Attack Vector LOCAL
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

Details

CWE
CWE-476
Status published
Products (14)
linux/Kernel 3.8.0 - 5.15.86linux
linux/Kernel 5.16.0 - 6.0.16linux
linux/Kernel 6.1.0 - 6.1.2linux
Linux/Linux < 3.8
Linux/Linux 3.8
Linux/Linux 5.15.86 - 5.15.*
Linux/Linux 6.0.16 - 6.0.*
Linux/Linux 6.1.2 - 6.1.*
Linux/Linux 6.2
Linux/Linux ff984e57d36e8ac468849a144a36f1c11f88b61c - 0c87db77423a282b3b38b8a6daf057b822680516
... and 4 more
Published Sep 15, 2025
Tracked Since Feb 18, 2026