{"id":"CVE-2026-23218","state":"PUBLISHED","title":"gpio: loongson-64bit: Fix incorrect NULL check after devm_kcalloc()","description":"In the Linux kernel, the following vulnerability has been resolved:\n\ngpio: loongson-64bit: Fix incorrect NULL check after devm_kcalloc()\n\nFix incorrect NULL check in loongson_gpio_init_irqchip().\nThe function checks chip->parent instead of chip->irq.parents.","publishedAt":"2026-02-18T14:21:55.906Z","updatedAt":"2026-05-11T22:02:36.315Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"03c146cb6cd14fdab2d2c7ab1b4e8035b54df8cc","status":"affected","lessThan":"e71e3fa90a15134113f61343392e887cd1f4bf7c","versionType":"git"},{"version":"03c146cb6cd14fdab2d2c7ab1b4e8035b54df8cc","status":"affected","lessThan":"e34f77b09080c86c929153e2a72da26b4f8947ff","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/gpio/gpio-loongson-64bit.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.18","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.18","versionType":"semver"},{"version":"6.18.10","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"6.19","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/gpio/gpio-loongson-64bit.c"]}],"references":["https://git.kernel.org/stable/c/e71e3fa90a15134113f61343392e887cd1f4bf7c","https://git.kernel.org/stable/c/e34f77b09080c86c929153e2a72da26b4f8947ff"],"weaknesses":[],"ingestedAt":"2026-10-29T20:11:21.040Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/23xxx/CVE-2026-23218.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-23218","state":"PUBLISHED","datePublished":"2026-02-18T14:21:55.906Z","dateUpdated":"2026-05-11T22:02:36.315Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-01-13T15:37:45.987Z"},"containers":{"cna":{"title":"gpio: loongson-64bit: Fix incorrect NULL check after devm_kcalloc()","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\ngpio: loongson-64bit: Fix incorrect NULL check after devm_kcalloc()\n\nFix incorrect NULL check in loongson_gpio_init_irqchip().\nThe function checks chip->parent instead of chip->irq.parents."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"03c146cb6cd14fdab2d2c7ab1b4e8035b54df8cc","status":"affected","lessThan":"e71e3fa90a15134113f61343392e887cd1f4bf7c","versionType":"git"},{"version":"03c146cb6cd14fdab2d2c7ab1b4e8035b54df8cc","status":"affected","lessThan":"e34f77b09080c86c929153e2a72da26b4f8947ff","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/gpio/gpio-loongson-64bit.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.18","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.18","versionType":"semver"},{"version":"6.18.10","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"6.19","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/gpio/gpio-loongson-64bit.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/e71e3fa90a15134113f61343392e887cd1f4bf7c"},{"url":"https://git.kernel.org/stable/c/e34f77b09080c86c929153e2a72da26b4f8947ff"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-05-11T22:02:36.315Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.18","versionEndExcluding":"6.18.10"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.18","versionEndExcluding":"6.19"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}