Bug 2405303

Summary: Crash when probing devices for v4l2
Product: [Fedora] Fedora Reporter: Kevin Wolf <kwolf>
Component: gstreamer1-plugins-goodAssignee: Wim Taymans <wtaymans>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: urgent Docs Contact:
Priority: unspecified    
Version: 42CC: dominik, gwync, multimedia-sig, negativo17, uraeus, wtaymans
Target Milestone: ---Keywords: Regression
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: gstreamer1-plugins-good-1.26.7-2.fc43 gstreamer1-plugins-good-1.26.7-2.fc42 Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2025-11-01 01:41:13 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Kevin Wolf 2025-10-21 09:43:31 UTC
After the recent update from gstreamer1-1.26.6-1.fc42 to gstreamer1-1.26.7-1.fc42, I started to get crashes in gst_v4l2_device_provider_probe_device(). The sequence in my case is that SELinux denied the application using the library (in my case a custom build of bitlbee) to access /dev/video0, stat() failed and the error path for then dereferences NULL.

Note that the application didn't even make use of v4l2, merely the fact that the plugin is installed meant that on startup, it was automatically loaded and immediately crashed the application.

I submitted a fix upstream at https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/9870 and confirmed that a locally built package with this change fixes the crash for me.

Reproducible: Always

Comment 1 Fedora Update System 2025-10-21 15:58:34 UTC
FEDORA-2025-e2956ec610 (gst-devtools-1.26.7-1.fc43, gst-editing-services-1.26.7-1.fc43, and 10 more) has been submitted as an update to Fedora 43.
https://bodhi.fedoraproject.org/updates/FEDORA-2025-e2956ec610

Comment 2 Fedora Update System 2025-10-21 15:59:24 UTC
FEDORA-2025-c493030fbf (gstreamer1-plugins-good-1.26.7-2.fc42) has been submitted as an update to Fedora 42.
https://bodhi.fedoraproject.org/updates/FEDORA-2025-c493030fbf

Comment 3 Fedora Update System 2025-10-22 01:08:16 UTC
FEDORA-2025-c493030fbf has been pushed to the Fedora 42 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2025-c493030fbf`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2025-c493030fbf

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 4 Fedora Update System 2025-10-22 02:26:39 UTC
FEDORA-2025-e2956ec610 has been pushed to the Fedora 43 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2025-e2956ec610`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2025-e2956ec610

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 5 Fedora Update System 2025-11-01 01:41:13 UTC
FEDORA-2025-e2956ec610 (gst-devtools-1.26.7-1.fc43, gst-editing-services-1.26.7-1.fc43, and 10 more) has been pushed to the Fedora 43 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 6 Fedora Update System 2025-11-01 01:49:00 UTC
FEDORA-2025-c493030fbf (gstreamer1-plugins-good-1.26.7-2.fc42) has been pushed to the Fedora 42 stable repository.
If problem still persists, please make note of it in this bug report.