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

media: v4l2-fwnode: Fix subdev owner overwritten in v4l2_async_register_subdev_sensor()

The v4l2 helper v4l2_async_register_subdev_sensor() calls
v4l2_async_register_subdev(), which is a macro that expands to
__v4l2_async_register_subdev(sd,THIS_MODULE). Since the macro is expanded
inside v4l2-fwnode.c, THIS_MODULE resolves to the v4l2-fwnode module
rather than the sensor driver module that originally set sd->owner. When
v4l2-fwnode is built-in, THIS_MODULE evaluates to NULL, which then
overwrites the sensor driver's owner with NULL.

This causes the problem that the sensor module's reference count is never
incremented during async registration, so the module can be removed while
the subdevice is still in use by a notifier (e.g., a CSI-2 receiver
bridge driver).

Fix this by renaming v4l2_async_register_subdev_sensor() to
__v4l2_async_register_subdev_sensor() with an added explicit module
argument and introducing a wrapper macro:
#define v4l2_async_register_subdev_sensor(sd) \
__v4l2_async_register_subdev_sensor(sd, THIS_MODULE)

This ensures the sensor driver module is properly referenced even when
the sensor driver does not init the owner field before calling
v4l2_async_register_subdev_sensor() and prevents premature module removal.
Published: 2026-08-10
Score: 5.5 Medium
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The kernel change reveals that the helper v4l2_async_register_subdev_sensor() uses the macro __v4l2_async_register_subdev(sd,THIS_MODULE), causing this_module to refer to the v4l2‑fwnode module rather than the sensor driver that set sd->owner. When the helper is built‑in, THIS_MODULE resolves to NULL and overwrites the sensor driver’s owner field. As a result the sensor driver’s reference count is never incremented when the sub‑device is registered asynchronously. This allows the sensor device module to be unloaded while a notifier such as a CSI‑2 bridge still holds a reference to the sub‑device, leading to a use‑after‑free situation that can crash the kernel or trigger instability.

Affected Systems

The affected product is the Linux kernel, specifically any build that includes the v4l2‑fwnode code and the v4l2_async_register_subdev_sensor() helper without the patch. No specific vendor or version list was supplied, so any kernel built from the point the vulnerable code existed until a newer version is installed is presumed affected.

Risk and Exploitability

The CVSS score is 5.5, and the EPSS score is < 1%. The vulnerability can cause the kernel to crash if an attacker or a misbehaving module unloads a sensor driver while its sub‑device remains in use. Because the flaw involves reference counting, it does not expose information directly but can lead to denial of service. The issue is not listed in CISA KEV. No public exploits have been reported as of the data provided. The likely attack vector is local and requires the ability to load or unload kernel modules. It is recommended to apply a kernel update that includes the fix or to avoid unloading sensor modules while sub‑devices remain active.

Generated by OpenCVE AI on August 13, 2026 at 08:35 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Update the Linux kernel to a version that contains the fix for v4l2_async_register_subdev_sensor().
  • If an update is not available, avoid unloading sensor driver modules while any V4L2 sub‑devices are still registered; ensure dependent drivers are unloaded first.
  • Verify that sensor drivers correctly set the owner field before calling v4l2_async_register_subdev_sensor(); if possible, patch the drivers to pass the explicit module argument as the function was renamed.

Generated by OpenCVE AI on August 13, 2026 at 08:35 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Debian DLA Debian DLA DLA-4745-1 linux-6.12 security update
History

Sun, 23 Aug 2026 13:15:00 +0000


Thu, 13 Aug 2026 07:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-399
CWE-416

Wed, 12 Aug 2026 00:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-911
References
Metrics threat_severity

None

cvssV3_1

{'score': 5.5, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H'}

threat_severity

Moderate


Mon, 10 Aug 2026 18:45:00 +0000

Type Values Removed Values Added
Weaknesses CWE-399
CWE-416

Mon, 10 Aug 2026 12:30:00 +0000

Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: media: v4l2-fwnode: Fix subdev owner overwritten in v4l2_async_register_subdev_sensor() The v4l2 helper v4l2_async_register_subdev_sensor() calls v4l2_async_register_subdev(), which is a macro that expands to __v4l2_async_register_subdev(sd,THIS_MODULE). Since the macro is expanded inside v4l2-fwnode.c, THIS_MODULE resolves to the v4l2-fwnode module rather than the sensor driver module that originally set sd->owner. When v4l2-fwnode is built-in, THIS_MODULE evaluates to NULL, which then overwrites the sensor driver's owner with NULL. This causes the problem that the sensor module's reference count is never incremented during async registration, so the module can be removed while the subdevice is still in use by a notifier (e.g., a CSI-2 receiver bridge driver). Fix this by renaming v4l2_async_register_subdev_sensor() to __v4l2_async_register_subdev_sensor() with an added explicit module argument and introducing a wrapper macro: #define v4l2_async_register_subdev_sensor(sd) \ __v4l2_async_register_subdev_sensor(sd, THIS_MODULE) This ensures the sensor driver module is properly referenced even when the sensor driver does not init the owner field before calling v4l2_async_register_subdev_sensor() and prevents premature module removal.
Title media: v4l2-fwnode: Fix subdev owner overwritten in v4l2_async_register_subdev_sensor()
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References

Subscriptions

Linux Linux Kernel
cve-icon MITRE

Status: PUBLISHED

Assigner: Linux

Published:

Updated: 2026-08-23T12:46:09.673Z

Reserved: 2026-07-30T09:28:09.374Z

Link: CVE-2026-68205

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-08-10T13:20:08.140

Modified: 2026-08-23T13:16:35.340

Link: CVE-2026-68205

cve-icon Redhat

Severity : Moderate

Publid Date: 2026-08-10T12:00:24Z

Links: CVE-2026-68205 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-08-13T08:45:03Z

Weaknesses
  • CWE-911

    Improper Update of Reference Count