CVE-2026-23218

gpio: loongson-64bit: Fix incorrect NULL check after devm_kcalloc()

Published Feb 18, 2026 CVSS 3.1 · 5.5 Medium EPSS < 1% KEV · Not listed
Description
In the Linux kernel, the following vulnerability has been resolved:

gpio: loongson-64bit: Fix incorrect NULL check after devm_kcalloc()

Fix incorrect NULL check in loongson_gpio_init_irqchip().
The function checks chip->parent instead of chip->irq.parents.

Analysis

AI-generated

Technical impact

The loongson‑64bit GPIO driver contains a faulty NULL check performed after allocating memory. The code compares the wrong structure field—chip->parent—instead of chip->irq.parents. If chip->irq.parents is NULL, this mistake can lead to a NULL pointer dereference in the kernel, which, as a typical outcome of CWE‑476, would likely cause a kernel panic and a loss of service. The official description does not explicitly state that a crash will occur, but the nature of the flaw and the identified CWE allow us to infer that the vulnerability could lead to a denial‑of‑service event.

Affected Systems

The vulnerability is present in the Linux kernel loongson‑64bit driver for the 6.19 release candidate series, specifically rc1 through rc8. Systems that run these kernel versions on Loongson‑64bit architectures and have the driver compiled or loaded are potentially affected.

Risk and Exploitability

The CVSS score of 5.5 indicates a moderate severity, and the EPSS score of less than 1% suggests a low likelihood of exploitation at this time. The vulnerability is not listed in the CISA KEV catalog. The attack vector is not explicitly detailed; however, because the defect appears during driver initialization, it most likely requires local access sufficient to load or recompile the module. Root or privileged users who can load the driver would therefore enable an attacker to trigger the crash, while remote exploitation appears unlikely from the information provided.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade the Linux kernel to a version that includes the patch for CVE-2026-23218, such as the next release after 6.19 rc8.
  • Disable the loongson-64bit GPIO driver or prevent its module from being loaded if a kernel upgrade is not immediately possible.
  • Monitor the system for attempts to load the driver module and review kernel logs for SIGKILL or Oops events that might indicate a crash related to this bug.

Generated by OpenCVE AI on April 18, 2026 at 11:56 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Weaknesses CWE-476
CPEs cpe:2.3:o:linux:linux_kernel:6.19:rc1:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:6.19:rc2:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:6.19:rc3:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:6.19:rc4:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:6.19:rc5:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:6.19:rc6:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:6.19:rc7:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:6.19:rc8:*:*:*:*:*:*
Metrics 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'}

Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: gpio: loongson-64bit: Fix incorrect NULL check after devm_kcalloc() Fix incorrect NULL check in loongson_gpio_init_irqchip(). The function checks chip->parent instead of chip->irq.parents.
Title gpio: loongson-64bit: Fix incorrect NULL check after devm_kcalloc()
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
May 11, 2026, 10:02 PM
Reserved
Jan 13, 2026, 3:37 PM
Status
Analyzed
Published
Feb 18, 2026, 3:18 PM
Modified
Jun 17, 2026, 10:21 AM
Severity
Moderate
Public date
Feb 18, 2026, 12:00 AM