Skip to main content

Over 150 LLM Providers · Over 5,300 Models The most extensible AI-powered pentesting platform. Open source. Star on GitHub

CVE-2025-21943

4.7 · MEDIUM
Published Apr 1, 2025 linux CWE-362 EPSS 0.17% (6th pctl)

Overview

CVE-2025-21943 is a medium-severity vulnerability affecting linux linux_kernel. It was published on April 1, 2025 and has a CVSS 3.1 base score of 4.7 (MEDIUM).

This vulnerability has a CVSS 3.1 base score of 4.7, rated MEDIUM. It requires local or adjacent network access to exploit. Some level of privileges is required for exploitation.

Technical Description

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

gpio: aggregator: protect driver attr handlers against module unload

Both new_device_store and delete_device_store touch module global

resources (e.g. gpio_aggregator_lock). To prevent race conditions with

module unload, a reference needs to be held.

Add try_module_get() in these handlers.

For new_device_store, this eliminates what appears to be the most dangerous

scenario: if an id is allocated from gpio_aggregator_idr but

platform_device_register has not yet been called or completed, a concurrent

module unload could fail to unregister/delete the device, leaving behind a

dangling platform device/GPIO forwarder. This can result in various issues.

The following simple reproducer demonstrates these problems:

#!/bin/bash

while :; do

# note: whether 'gpiochip0 0' exists or not does not matter.

echo 'gpiochip0 0' > /sys/bus/platform/drivers/gpio-aggregator/new_device

done &

while :; do

modprobe gpio

Remediation

Check the references section for vendor advisories and patches from linux. Update linux_kernel to the latest patched version. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

Affected Products

Vendor Product Versions Status
linux linux_kernel >= 5.8, < 5.10.235 Affected

Frequently Asked Questions

What is CVE-2025-21943?

CVE-2025-21943 is a medium-severity vulnerability affecting linux linux_kernel. It was published on April 1, 2025 and has a CVSS 3.1 base score of 4.7 (MEDIUM).

How severe is CVE-2025-21943?

This vulnerability has a CVSS 3.1 base score of 4.7, rated MEDIUM. It requires local or adjacent network access to exploit. Some level of privileges is required for exploitation.

How do I fix or remediate CVE-2025-21943?

Check the references section for vendor advisories and patches from linux. Update linux_kernel to the latest patched version. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

How can CyberStrike help with CVE-2025-21943?

CyberStrike's AI-powered security agents can automatically detect CVE-2025-21943 across your infrastructure using autonomous pentesting, DAST scanning, and HackBrowser. The platform continuously monitors for known vulnerabilities and provides actionable remediation guidance prioritized by real-world exploitability.