CVE-2025-37971 staging: bcm2835-camera: Initialise dev in v4l2_dev
A null pointer dereference in the Linux kernel's BCM2835 camera driver can cause a system crash, requiring a kernel patch.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2025-37971?
CVE-2025-37971 is a medium-severity vulnerability in Linux kernel, published on 20 May 2025. It can only be exploited from the same machine or local network, with no action from the victim.
Official 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.
Weakness: CWE-476
Which versions are affected by CVE-2025-37971?
It affects 1 product.
Products include Linux kernel.
How do I fix CVE-2025-37971?
Apply the vendor's patch.
Is CVE-2025-37971 being exploited?
There is no known exploitation of CVE-2025-37971 in the wild and no public exploit code.
Other vulnerabilities in Linux kernel
Sources
Also known as BELL-CVE-2025-37971, DEBIAN-CVE-2025-37971, GHSA-6723-3r89-pw82, UBUNTU-CVE-2025-37971.