# CVE-2024-50175: media: qcom: camss: Remove use\_count guard in stop\_streaming

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.32% (percentile 17, 2026-11-26)
- **Published:** 2024-11-08T05:23:57.808Z
- **Modified:** 2026-08-05T11:42:18.585Z

## Who should check

- Anyone running Linux \>= 89013969e23247661f0514c77f26d60fa083216c, \< c2218a82f795dc3d0b6210bcaa3d9c5ca736fcd9; \>= 89013969e23247661f0514c77f26d60fa083216c, \< a975db8aea152f9907aa53a7f517e557ccb40da3; \>= 89013969e23247661f0514c77f26d60fa083216c, \< d7d4dde3decef1b5aa1f5c390147f79aae412dee; \>= 89013969e23247661f0514c77f26d60fa083216c, \< 25f18cb1b673220b76a86ebef8e7fb79bd303b27
- Anyone running Linux 6.4

## 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")

## Affected and fixed versions

- Linux: \>= 89013969e23247661f0514c77f26d60fa083216c, \< c2218a82f795dc3d0b6210bcaa3d9c5ca736fcd9; \>= 89013969e23247661f0514c77f26d60fa083216c, \< a975db8aea152f9907aa53a7f517e557ccb40da3; \>= 89013969e23247661f0514c77f26d60fa083216c, \< d7d4dde3decef1b5aa1f5c390147f79aae412dee; \>= 89013969e23247661f0514c77f26d60fa083216c, \< 25f18cb1b673220b76a86ebef8e7fb79bd303b27 (cvelist)
- Linux: 6.4 (cvelist)

## Mitigation

- Upgrade Linux to 25f18cb1b673220b76a86ebef8e7fb79bd303b27 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2024-50175. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-50175.md
Affected: Linux >= 89013969e23247661f0514c77f26d60fa083216c, < c2218a82f795dc3d0b6210bcaa3d9c5ca736fcd9; >= 89013969e23247661f0514c77f26d60fa083216c, < a975db8aea152f9907aa53a7f517e557ccb40da3; >= 89013969e23247661f0514c77f26d60fa083216c, < d7d4dde3decef1b5aa1f5c390147f79aae412dee; >= 89013969e23247661f0514c…
Fixed in: Linux 25f18cb1b673220b76a86ebef8e7fb79bd303b27

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2024-50175 being exploited?

There is no confirmed exploitation: CVE-2024-50175 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.32% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2024-50175?

High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2024-50175?

Linux \>= 89013969e23247661f0514c77f26d60fa083216c, \< c2218a82f795dc3d0b6210bcaa3d9c5ca736fcd9; \>= 89013969e23247661f0514c77f26d60fa083216c, \< a975db8aea152f9907aa53a7f517e557ccb40da3; \>= 89013969e23247661f0514c77f26d60fa083216c, \< d7d4dde3decef1b5aa1f5c390147f79aae412dee; \>= 89013969e23247661f0514c77f26d60fa083216c, \< 25f18cb1b673220b76a86ebef8e7fb79bd303b27; Linux 6.4.

### Is there a fix for CVE-2024-50175?

Yes. Fixed in Linux 25f18cb1b673220b76a86ebef8e7fb79bd303b27. Upgrade Linux to 25f18cb1b673220b76a86ebef8e7fb79bd303b27 or later.

### How do I check if I'm affected by CVE-2024-50175?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/c2218a82f795dc3d0b6210bcaa3d9c5ca736fcd9>
- patch: <https://git.kernel.org/stable/c/a975db8aea152f9907aa53a7f517e557ccb40da3>
- patch: <https://git.kernel.org/stable/c/d7d4dde3decef1b5aa1f5c390147f79aae412dee>
- patch: <https://git.kernel.org/stable/c/25f18cb1b673220b76a86ebef8e7fb79bd303b27>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2024-50175>

HTML: <https://flawdb.com/CVE-2024-50175> · JSON: <https://flawdb.com/api/v1/entries/CVE-2024-50175>
