# CVE-2026-23218: gpio: loongson-64bit: Fix incorrect NULL check after devm_kcalloc()

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.12%, higher than 1% of CVEs (2026-12-01)
- Published: 2026-02-18T14:21:55.906Z
- Modified: 2026-06-17T10:21:07.350Z
- Weaknesses: CWE-476
- Assigned by: Linux

## 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.

(As written by CVE List.)

## Affected

- Linux Linux: from 03c146cb6cd14fdab2d2c7ab1b4e8035b54df8cc before e71e3fa90a15134113f61343392e887cd1f4bf7c; from 03c146cb6cd14fdab2d2c7ab1b4e8035b54df8cc before e34f77b09080c86c929153e2a72da26b4f8947ff; 6.18 (not affected: before 6.18; from 6.18.10 up to 6.18.*; from 6.19 up to *)
- linux linux_kernel: from 6.18 before 6.18.10; 6.19

## References

- <https://git.kernel.org/stable/c/e71e3fa90a15134113f61343392e887cd1f4bf7c> (patch)
- <https://git.kernel.org/stable/c/e34f77b09080c86c929153e2a72da26b4f8947ff> (patch)

## Sources

- CVE List: [CVE-2026-23218](https://www.cve.org/CVERecord?id=CVE-2026-23218), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2026-23218](https://nvd.nist.gov/vuln/detail/CVE-2026-23218), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2026-23218 · Whole record: https://cve.day/CVE-2026-23218.json · Rebuilt by cve.day 2026-11-25T22:59:13.992Z
