# CVE-2025-37971: staging: bcm2835-camera: Initialise dev in v4l2_dev

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.19%, higher than 8% of CVEs (2026-12-01)
- Published: 2025-05-20T16:47:17.879Z
- Modified: 2026-06-17T09:15:48.167Z
- Weaknesses: CWE-476
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

staging: bcm2835-camera: Initialise dev in v4l2_dev

Commit 42a2f6664e18 ("staging: vc04_services: Move global g_state to
vchiq_state") changed mmal_init to pass dev->v4l2_dev.dev to
vchiq_mmal_init, however nothing iniitialised dev->v4l2_dev, so we got
a NULL pointer dereference.

Set dev->v4l2_dev.dev during bcm2835_mmal_probe. The device pointer
could be passed into v4l2_device_register to set it, however that also
has other effects that would need additional changes.

(As written by CVE List.)

## Affected

- Linux Linux: from 42a2f6664e18874302623f31edef545ef41e1d14 before 06753f49336ab161ea0e249a0720125b81b7b31b; from 42a2f6664e18874302623f31edef545ef41e1d14 before b70bdd4923e8b8edbacde2af83ca337bb7005261; from 42a2f6664e18874302623f31edef545ef41e1d14 before 98698ca0e58734bc5c1c24e5bbc7429f981cd186; 6.10 (not affected: before 6.10; from 6.12.29 up to 6.12.*; from 6.14.7 up to 6.14.*; from 6.15 up to *)
- linux linux_kernel: from 6.10 before 6.12.29; from 6.13 before 6.14.7; 6.15

## References

- <https://git.kernel.org/stable/c/06753f49336ab161ea0e249a0720125b81b7b31b> (patch)
- <https://git.kernel.org/stable/c/b70bdd4923e8b8edbacde2af83ca337bb7005261> (patch)
- <https://git.kernel.org/stable/c/98698ca0e58734bc5c1c24e5bbc7429f981cd186> (patch)

## Sources

- CVE List: [CVE-2025-37971](https://www.cve.org/CVERecord?id=CVE-2025-37971), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2025-37971](https://nvd.nist.gov/vuln/detail/CVE-2025-37971), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2025-37971 · Whole record: https://cve.day/CVE-2025-37971.json · Rebuilt by cve.day 2026-11-25T22:58:58.315Z
