[<prev] [next>] [day] [month] [year] [list]
Message-ID: <2026021801-CVE-2026-23218-4114@gregkh>
Date: Wed, 18 Feb 2026 15:22:09 +0100
From: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
To: linux-cve-announce@...r.kernel.org
Cc: Greg Kroah-Hartman <gregkh@...nel.org>
Subject: CVE-2026-23218: gpio: loongson-64bit: Fix incorrect NULL check after devm_kcalloc()
From: Greg Kroah-Hartman <gregkh@...nel.org>
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.
The Linux kernel CVE team has assigned CVE-2026-23218 to this issue.
Affected and fixed versions
===========================
Issue introduced in 6.18 with commit 03c146cb6cd14fdab2d2c7ab1b4e8035b54df8cc and fixed in 6.18.10 with commit e71e3fa90a15134113f61343392e887cd1f4bf7c
Issue introduced in 6.18 with commit 03c146cb6cd14fdab2d2c7ab1b4e8035b54df8cc and fixed in 6.19 with commit e34f77b09080c86c929153e2a72da26b4f8947ff
Please see https://www.kernel.org for a full list of currently supported
kernel versions by the kernel community.
Unaffected versions might change over time as fixes are backported to
older supported kernel versions. The official CVE entry at
https://cve.org/CVERecord/?id=CVE-2026-23218
will be updated if fixes are backported, please check that for the most
up to date information about this issue.
Affected files
==============
The file(s) affected by this issue are:
drivers/gpio/gpio-loongson-64bit.c
Mitigation
==========
The Linux kernel CVE team recommends that you update to the latest
stable kernel version for this, and many other bugfixes. Individual
changes are never tested alone, but rather are part of a larger kernel
release. Cherry-picking individual commits is not recommended or
supported by the Linux kernel community at all. If however, updating to
the latest release is impossible, the individual changes to resolve this
issue can be found at these commits:
https://git.kernel.org/stable/c/e71e3fa90a15134113f61343392e887cd1f4bf7c
https://git.kernel.org/stable/c/e34f77b09080c86c929153e2a72da26b4f8947ff
Powered by blists - more mailing lists