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

Goal: 1000 CNY · Raised: 1359 CNY

100%

CVE-2024-56685— ASoC: mediatek: Check num_codecs is not zero to avoid panic during probe

Quick assessment

Affected
Linux Linux
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

Linux kernel是美国Linux基金会的开源操作系统Linux所使用的内核。 Linux kernel存在安全漏洞,该漏洞源于bpf模块中bpf_msg_pop_data函数中的多个问题,可能导致内存错误。

AI Predicted 5.5 Difficulty: Hard EPSS 0.20% · P10

Possible ATT&CK Techniques 1 AI

T1059 · Command and Scripting Interpreter

Affected Version Matrix 8

VendorProduct Version RangeStatus
Linux Linux 13f58267cda3d6946c8f4de368ad5d4a003baa61< 376f4800f34a28def026ff5c5d4fc5e54e1744ff affected
13f58267cda3d6946c8f4de368ad5d4a003baa61< 550279449ff54c5aa28cfca5c567308cbfb145f0 affected
13f58267cda3d6946c8f4de368ad5d4a003baa61< 2f2020327cc8561d7c520d2f2d9acea84fa7b3a3 affected
6.8 affected
< 6.8 unaffected
6.11.11≤ 6.11.* unaffected
6.12.2≤ 6.12.* unaffected
6.13≤ * unaffected
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2024-56685

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
ASoC: mediatek: Check num_codecs is not zero to avoid panic during probe
Source: CVE Program / CVE List V5
Vulnerability Description
In the Linux kernel, the following vulnerability has been resolved: ASoC: mediatek: Check num_codecs is not zero to avoid panic during probe Following commit 13f58267cda3 ("ASoC: soc.h: don't create dummy Component via COMP_DUMMY()"), COMP_DUMMY() became an array with zero length, and only gets populated with the dummy struct after the card is registered. Since the sound card driver's probe happens before the card registration, accessing any of the members of a dummy component during probe will result in undefined behavior. This can be observed in the mt8188 and mt8195 machine sound drivers. By omitting a dai link subnode in the sound card's node in the Devicetree, the default uninitialized dummy codec is used, and when its dai_name pointer gets passed to strcmp() it results in a null pointer dereference and a kernel panic. In addition to that, set_card_codec_info() in the generic helpers file, mtk-soundcard-driver.c, will populate a dai link with a dummy codec when a dai link node is present in DT but with no codec property. The result is that at probe time, a dummy codec can either be uninitialized with num_codecs = 0, or be an initialized dummy codec, with num_codecs = 1 and dai_name = "snd-soc-dummy-dai". In order to accommodate for both situations, check that num_codecs is not zero before accessing the codecs' fields but still check for the codec's dai name against "snd-soc-dummy-dai" as needed. While at it, also drop the check that dai_name is not null in the mt8192 driver, introduced in commit 4d4e1b6319e5 ("ASoC: mediatek: mt8192: Check existence of dai_name before dereferencing"), as it is actually redundant given the preceding num_codecs != 0 check.
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存在安全漏洞,该漏洞源于bpf模块中bpf_msg_pop_data函数中的多个问题,可能导致内存错误。
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

Vendor Product Affected Versions CPE Subscribe
Linux Linux 13f58267cda3d6946c8f4de368ad5d4a003baa61 ~ 376f4800f34a28def026ff5c5d4fc5e54e1744ff -
Linux Linux 6.8 -

II. Public POCs for CVE-2024-56685

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2024-56685

请登录查看更多情报信息。

Patches & Fixes for CVE-2024-56685 (3)

Same Patch Batch · Linux · 2024-12-28 · 32 CVEs total

CVE-2024-56704 8.4 HIGH 9p/xen: fix release of IRQ
CVE-2024-56684 8.4 HIGH mailbox: mtk-cmdq: fix wrong use of sizeof in cmdq_get_clocks()
CVE-2024-56677 7.8 HIGH powerpc/fadump: Move fadump_cma_init to setup_arch() after initmem_init()
CVE-2024-56706 7.8 HIGH s390/cpum_sf: Fix and protect memory allocation of SDBs with mutex
CVE-2024-56692 7.8 HIGH f2fs: fix to do sanity check on node blkaddr in truncate_node()
CVE-2024-56693 7.8 HIGH brd: defer automatic disk creation until module initialization succeeds
CVE-2024-56681 7.8 HIGH crypto: bcm - add error check in the ahash_hmac_init function
CVE-2024-56688 7.5 HIGH sunrpc: clear XPRT_SOCK_UPD_TIMEOUT when reset transport
CVE-2024-56703 7.5 HIGH ipv6: Fix soft lockups in fib6_select_path under high next hop churn
CVE-2024-56694 7.5 HIGH bpf: fix recursive lock when verdict program return SK_PASS
CVE-2024-56696 ALSA: core: Fix possible NULL dereference caused by kunit_kzalloc()
CVE-2024-56708 EDAC/igen6: Avoid segmentation fault on module unload
CVE-2024-56707 octeontx2-pf: handle otx2_mbox_get_rsp errors in otx2_dmac_flt.c
CVE-2024-56705 media: atomisp: Add check for rgby_data memory allocation failure
CVE-2024-56676 thermal: testing: Initialize some variables annoteded with _free()
CVE-2024-56678 powerpc/mm/fault: Fix kfence page fault reporting
CVE-2024-56701 powerpc/pseries: Fix dtl_access_lock to be a rw_semaphore
CVE-2024-56702 bpf: Mark raw_tp arguments with PTR_MAYBE_NULL
CVE-2024-56700 media: wl128x: Fix atomicity violation in fmc_send_cmd()
CVE-2024-56699 s390/pci: Fix potential double remove of hotplug slot

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

IV. Related Vulnerabilities

V. Comments for CVE-2024-56685

No comments yet


Leave a comment