CVE-2022-50347
Vulnerability Summary
Timeline
Description
In the Linux kernel, the following vulnerability has been resolved: mmc: rtsx_usb_sdmmc: 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, besides, led_classdev_unregister() and pm_runtime_disable() also need be called.
CVSS Metrics
- v3.1•MEDIUM•Score: 5.5CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
EPSS Trends
Current EPSS score: 0.16%• Percentile: 6%
Techniques & Countermeasures
- CWE-476•NULL Pointer Dereference
The product dereferences a pointer that it expects to be valid but is NULL.
Affected Systems
- debian•linux
< 5.10.178-1 | < 6.1.4-1 | < 6.1.4-1 | < 6.1.4-1
- ubuntu•linux
all | < 4.15.0-208.220 | < 5.4.0-144.161 | < 5.15.0-69.76
- ubuntu•linux-allwinner-5.19
all
- ubuntu•linux-aws
all | < 4.15.0-1153.166 | < 5.4.0-1097.105 | < 5.15.0-1033.37
- ubuntu•linux-aws-5.0
all
- ubuntu•linux-aws-5.11
all
- ubuntu•linux-aws-5.13
all
- ubuntu•linux-aws-5.15
< 5.15.0-1033.37~20.04.1
- ubuntu•linux-aws-5.19
all
- ubuntu•linux-aws-5.3
all
- ubuntu•linux-aws-5.4
< 5.4.0-1097.105~18.04.1
- ubuntu•linux-aws-5.8
all
- ubuntu•linux-aws-6.2
all
- ubuntu•linux-aws-6.5
all
- ubuntu•linux-aws-fips
< 4.15.0-2092.98 | all | < 5.4.0-1099.107+fips1
- ubuntu•linux-aws-hwe
< 4.15.0-1153.166~16.04.1
- ubuntu•linux-azure
< 4.15.0-1162.177~14.04.1 | < 4.15.0-1162.177~16.04.1 | all | < 5.4.0-1104.110 | < 5.15.0-1035.42
- ubuntu•linux-azure-4.15
< 4.15.0-1162.177
- ubuntu•linux-azure-5.11
all
- ubuntu•linux-azure-5.13
all
- ubuntu•linux-azure-5.15
< 5.15.0-1035.42~20.04.1
- ubuntu•linux-azure-5.19
all
- ubuntu•linux-azure-5.3
all
- ubuntu•linux-azure-5.4
< 5.4.0-1104.110~18.04.1
- ubuntu•linux-azure-5.8
all
- ubuntu•linux-azure-6.11
all
- ubuntu•linux-azure-6.2
all
- ubuntu•linux-azure-6.5
all
- ubuntu•linux-azure-edge
all
- ubuntu•linux-azure-fde
all | all
- ubuntu•linux-azure-fde-5.19
all
- ubuntu•linux-azure-fde-6.2
all
- ubuntu•linux-azure-fips
< 4.15.0-2071.77 | all | < 5.4.0-1104.110+fips1
- ubuntu•linux-bluefield
all | < 5.4.0-1059.65 | < 5.15.0-1015.17
- ubuntu•linux-fips
all | < 4.15.0-1108.119 | < 5.4.0-1073.82
- ubuntu•linux-gcp
< 4.15.0-1147.163~16.04.1 | all | < 5.4.0-1101.110 | < 5.15.0-1031.38
- ubuntu•linux-gcp-4.15
< 4.15.0-1147.163
- ubuntu•linux-gcp-5.11
all
- ubuntu•linux-gcp-5.13
all
- ubuntu•linux-gcp-5.15
< 5.15.0-1031.38~20.04.1
- ubuntu•linux-gcp-5.19
all
- ubuntu•linux-gcp-5.3
all
- ubuntu•linux-gcp-5.4
< 5.4.0-1101.110~18.04.1
- ubuntu•linux-gcp-5.8
all
- ubuntu•linux-gcp-6.11
all
- ubuntu•linux-gcp-6.2
all
- ubuntu•linux-gcp-6.5
all
- ubuntu•linux-gcp-fips
< 4.15.0-2055.60 | all | < 5.4.0-1101.110+fips1
- ubuntu•linux-gke
all | < 5.15.0-1030.35
- ubuntu•linux-gke-4.15
all
Showing first 50 affected entries in server-rendered view.
References (13)
- https://git.kernel.org/stable/c/d7ad7278be401b09c9f9a9f522cf4c449c7fd489
- https://git.kernel.org/stable/c/e598c9683fe1cf97c2b11b800cc3cee072108220
- https://git.kernel.org/stable/c/89303ddbb502c3bc8edbf864f9f85500c8fe07e9
- https://git.kernel.org/stable/c/937112e991ed25d1727d878734adcbef3b900274
- https://git.kernel.org/stable/c/7fa922c7a3dd623fd59f1af50e8896fd9ca7f654
- https://git.kernel.org/stable/c/df683201c7ffbd21a806a7cad657b661c5ebfb6f
- https://git.kernel.org/stable/c/1491667d5450778a265eddddd294219acfd648cb
- https://git.kernel.org/stable/c/a522e26a20a43dcfbef9ee9f71ed803290e852b0
- https://git.kernel.org/stable/c/fc38a5a10e9e5a75eb9189854abeb8405b214cc9
- https://ubuntu.com/security/CVE-2022-50347
- https://www.cve.org/CVERecord?id=CVE-2022-50347
- https://git.kernel.org/linus/fc38a5a10e9e5a75eb9189854abeb8405b214cc9
- https://security-tracker.debian.org/tracker/CVE-2022-50347