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

Goal: 1000 CNY · Raised: 1336 CNY

100%

CVE-2024-50175— media: qcom: camss: Remove use_count guard in stop_streaming

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存在安全漏洞,该漏洞源于对use_count的错误使用导致竞争条件。

CVSS 7.8 · High EPSS 0.23% · P14

Affected Version Matrix 10

VendorProduct Version RangeStatus
Linux Linux 89013969e23247661f0514c77f26d60fa083216c< c2218a82f795dc3d0b6210bcaa3d9c5ca736fcd9 affected
89013969e23247661f0514c77f26d60fa083216c< a975db8aea152f9907aa53a7f517e557ccb40da3 affected
89013969e23247661f0514c77f26d60fa083216c< d7d4dde3decef1b5aa1f5c390147f79aae412dee affected
89013969e23247661f0514c77f26d60fa083216c< 25f18cb1b673220b76a86ebef8e7fb79bd303b27 affected
6.4 affected
< 6.4 unaffected
6.6.55≤ 6.6.* unaffected
6.10.14≤ 6.10.* unaffected
… +2 more rows
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2024-50175

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
media: qcom: camss: Remove use_count guard in stop_streaming
Source: CVE Program / CVE List V5
Vulnerability Description
In the Linux kernel, the following vulnerability has been resolved: media: qcom: camss: Remove use_count guard in stop_streaming The use_count check was introduced so that multiple concurrent Raw Data Interfaces RDIs could be driven by different virtual channels VCs on the CSIPHY input driving the video pipeline. This is an invalid use of use_count though as use_count pertains to the number of times a video entity has been opened by user-space not the number of active streams. If use_count and stream-on count don't agree then stop_streaming() will break as is currently the case and has become apparent when using CAMSS with libcamera's released softisp 0.3. The use of use_count like this is a bit hacky and right now breaks regular usage of CAMSS for a single stream case. Stopping qcam results in the splat below, and then it cannot be started again and any attempts to do so fails with -EBUSY. [ 1265.509831] WARNING: CPU: 5 PID: 919 at drivers/media/common/videobuf2/videobuf2-core.c:2183 __vb2_queue_cancel+0x230/0x2c8 [videobuf2_common] ... [ 1265.510630] Call trace: [ 1265.510636] __vb2_queue_cancel+0x230/0x2c8 [videobuf2_common] [ 1265.510648] vb2_core_streamoff+0x24/0xcc [videobuf2_common] [ 1265.510660] vb2_ioctl_streamoff+0x5c/0xa8 [videobuf2_v4l2] [ 1265.510673] v4l_streamoff+0x24/0x30 [videodev] [ 1265.510707] __video_do_ioctl+0x190/0x3f4 [videodev] [ 1265.510732] video_usercopy+0x304/0x8c4 [videodev] [ 1265.510757] video_ioctl2+0x18/0x34 [videodev] [ 1265.510782] v4l2_ioctl+0x40/0x60 [videodev] ... [ 1265.510944] videobuf2_common: driver bug: stop_streaming operation is leaving buffer 0 in active state [ 1265.511175] videobuf2_common: driver bug: stop_streaming operation is leaving buffer 1 in active state [ 1265.511398] videobuf2_common: driver bug: stop_streaming operation is leaving buffer 2 in active st One CAMSS specific way to handle multiple VCs on the same RDI might be: - Reference count each pipeline enable for CSIPHY, CSID, VFE and RDIx. - The video buffers are already associated with msm_vfeN_rdiX so release video buffers when told to do so by stop_streaming. - Only release the power-domains for the CSIPHY, CSID and VFE when their internal refcounts drop. Either way refusing to release video buffers based on use_count is erroneous and should be reverted. The silicon enabling code for selecting VCs is perfectly fine. Its a "known missing feature" that concurrent VCs won't work with CAMSS right now. Initial testing with this code didn't show an error but, SoftISP and "real" usage with Google Hangouts breaks the upstream code pretty quickly, we need to do a partial revert and take another pass at VCs. This commit partially reverts commit 89013969e232 ("media: camss: sm8250: Pipeline starting and stopping for multiple virtual channels")
Source: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
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存在安全漏洞,该漏洞源于对use_count的错误使用导致竞争条件。
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 89013969e23247661f0514c77f26d60fa083216c ~ c2218a82f795dc3d0b6210bcaa3d9c5ca736fcd9 -
Linux Linux 6.4 -

II. Public POCs for CVE-2024-50175

# 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-50175

登录查看更多情报信息。

Patches & Fixes for CVE-2024-50175 (4)

Same Patch Batch · Linux · 2024-11-08 · 38 CVEs total

CVE-2024-50206 9.8 CRITICAL net: ethernet: mtk_eth_soc: fix memory corruption during fq dma init
CVE-2024-50185 8.2 HIGH mptcp: handle consistently DSS corruption
CVE-2024-50174 7.8 HIGH drm/panthor: Fix race when converting group handle to group object
CVE-2024-50211 7.8 HIGH udf: refactor inode_bmap() to handle error
CVE-2024-50208 7.8 HIGH RDMA/bnxt_re: Fix a bug while setting up Level-2 PBL pages
CVE-2024-50207 7.8 HIGH ring-buffer: Fix reader locking when changing the sub buffer order
CVE-2024-50203 7.8 HIGH bpf, arm64: Fix address emission with tag-based KASAN enabled
CVE-2024-50200 7.8 HIGH maple_tree: correct tree corruption on spanning store
CVE-2024-50189 7.8 HIGH HID: amd_sfh: Switch to device-managed dmam_alloc_coherent()
CVE-2024-50188 7.8 HIGH net: phy: dp83869: fix memory corruption when enabling fiber
CVE-2024-50187 7.8 HIGH drm/vc4: Stop the active perfmon before being destroyed
CVE-2024-50173 7.8 HIGH drm/panthor: Fix access to uninitialized variable in tick_ctx_cleanup()
CVE-2024-50186 7.8 HIGH net: explicitly clear the sk pointer, when pf->create fails
CVE-2024-50182 7.1 HIGH secretmem: disable memfd_secret() if arch cannot set direct map
CVE-2024-50195 7.1 HIGH posix-clock: Fix missing timespec64 check in pc_clock_settime()
CVE-2024-50199 mm/swapfile: skip HugeTLB pages for unuse_vma
CVE-2024-50210 posix-clock: posix-clock: Fix unbalanced locking in pc_clock_settime()
CVE-2024-50176 remoteproc: k3-r5: Fix error handling when power-up failed
CVE-2024-50209 RDMA/bnxt_re: Add a check for memory allocation
CVE-2024-50177 drm/amd/display: fix a UBSAN warning in DML2.1

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

IV. Related Vulnerabilities

V. Comments for CVE-2024-50175

No comments yet


Leave a comment