Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1336 CNY

100%

CVE-2022-50846— mmc: via-sdmmc: fix return value check of mmc_add_host()

AI Predicted 5.5 Difficulty: Moderate EPSS 0.25% · P16

Possible ATT&CK Techniques 1AI

T1047 · Windows Management Instrumentation

Affected Version Matrix 20

VendorProductVersion RangeStatus
LinuxLinuxf0bf7f61b8405224bc52fc9a3ccd167a68126e00< 076bcd2c93e16b05c10564e299d6e5d26a766d00affected
f0bf7f61b8405224bc52fc9a3ccd167a68126e00< 12b8e81b77c05c658efd9cde3585bbd65ae39b59affected
f0bf7f61b8405224bc52fc9a3ccd167a68126e00< 95025a8dd0ec015872f6c16473fe04d6264e68caaffected
f0bf7f61b8405224bc52fc9a3ccd167a68126e00< f59ef2a47a228e51322ad76752a55a8917c56e38affected
f0bf7f61b8405224bc52fc9a3ccd167a68126e00< 63400da6cd37a9793c19bb6aed7131b58b975a04affected
f0bf7f61b8405224bc52fc9a3ccd167a68126e00< 0959cc1685eb19774300d43ef25e318b457b156baffected
f0bf7f61b8405224bc52fc9a3ccd167a68126e00< 0ec94795114edc7e24ec71849dce42bfa61dafa3affected
f0bf7f61b8405224bc52fc9a3ccd167a68126e00< ba91b413983a9235792523c6b9f7ba2586c4d75daffected
… +12 more rows
Get alerts for future matching vulnerabilitiesLog in to subscribe

I. Basic Information for CVE-2022-50846

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
mmc: via-sdmmc: fix return value check of mmc_add_host()
Source: CVE Program / CVE List V5
Vulnerability Description
In the Linux kernel, the following vulnerability has been resolved: mmc: via-sdmmc: fix return value check of mmc_add_host() mmc_add_host() may return error, if we ignore its return value, it will lead two issues: 1. The memory that allocated in mmc_alloc_host() is leaked. 2. In the remove() path, mmc_remove_host() will be called to delete device, but it's not added yet, it will lead a kernel crash because of null-ptr-deref in device_del(). Fix this by checking the return value and goto error path which will call mmc_free_host().
Source: CVE Program / CVE List V5
CVSS Information
N/A
Source: CVE Program / CVE List V5
Vulnerability Type
N/A
Source: CVE Program / CVE List V5
Vulnerability Title
Linux kernel 安全漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
Linux kernel是美国Linux基金会的开源操作系统Linux所使用的内核。 Linux kernel存在安全漏洞,该漏洞源于未检查mmc_add_host返回值,可能导致内存泄漏和空指针取消引用。
Source: CNNVD (China National Vulnerability Database)
CVSS Information
N/A
Source: CNNVD (China National Vulnerability Database)
Vulnerability Type
N/A
Source: CNNVD (China National Vulnerability Database)

Affected Products

VendorProductAffected VersionsCPESubscribe
LinuxLinux f0bf7f61b8405224bc52fc9a3ccd167a68126e00 ~ 076bcd2c93e16b05c10564e299d6e5d26a766d00 -
LinuxLinux 2.6.31 -

II. Public POCs for CVE-2022-50846

#POC DescriptionSource LinkShenlong Link
AI-Generated POCPremium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2022-50846

登录查看更多情报信息。

Other References for CVE-2022-50846 (9)

Same Patch Batch · Linux · 2025-12-30 · 244 CVEs total

CVE-2023-541849.8 CRITICALscsi: target: iscsit: Free cmds before session free
CVE-2023-542239.8 CRITICALnet/mlx5e: xsk: Fix invalid buffer access for legacy rq
CVE-2023-542379.8 CRITICALnet/smc: fix potential panic dues to unprotected smc_llc_srv_add_link()
CVE-2023-542579.8 CRITICALnet: macb: fix a memory corruption in extended buffer descriptor mode
CVE-2023-542589.8 CRITICALcifs: fix potential oops in cifs_oplock_break
CVE-2023-542699.8 CRITICALSUNRPC: double free xprt_ctxt while still in use
CVE-2023-542809.8 CRITICALcifs: fix potential race when tree connecting ipc
CVE-2023-542929.8 CRITICALRDMA/irdma: Fix data race on CQP request done
CVE-2023-542039.1 CRITICALksmbd: fix slab-out-of-bounds in init_smb2_rsp_hdr
CVE-2022-508808.8 HIGHwifi: ath10k: add peer map clean up for peer delete in ath10k_sta_state()
CVE-2023-542628.8 HIGHnet/mlx5e: Don't clone flow post action attributes second time
CVE-2023-542148.8 HIGHBluetooth: L2CAP: Fix potential user-after-free
CVE-2023-541628.8 HIGHksmbd: fix possible memory leak in smb2_lock()
CVE-2023-543188.8 HIGHnet/smc: use smc_lgr_list.lock to protect smc_lgr_list.list iterate in smcr_port_add
CVE-2023-542508.2 HIGHksmbd: avoid out of bounds access in decode_preauth_ctxt()
CVE-2023-541648.0 HIGHBluetooth: ISO: fix iso_conn related locking and validity issues
CVE-2023-542067.8 HIGHnet/sched: flower: fix filter idr initialization
CVE-2023-542027.8 HIGHdrm/i915: fix race condition UAF in i915_perf_add_config_ioctl
CVE-2023-542107.8 HIGHBluetooth: hci_sync: Avoid use-after-free in dbg for hci_remove_adv_monitor()
CVE-2023-542437.8 HIGHnetfilter: ebtables: fix table blob use-after-free

Showing top 20 of 244 CVEs. View all on vendor page &rarr; →

IV. Related Vulnerabilities

V. Comments for CVE-2022-50846

No comments yet


Leave a comment