{"id":"CVE-2026-31559","aliases":["CVE-2026-31559"],"related":[],"kind":"vulnerability","state":"published","title":"LoongArch: Fix missing NULL checks for kstrdup()","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nLoongArch: Fix missing NULL checks for kstrdup()\n\n1. Replace \"of_find_node_by_path(\"/\")\" with \"of_root\" to avoid multiple\ncalls to \"of_node_put()\".\n\n2. Fix a potential kernel oops during early boot when memory allocation\nfails while parsing CPU model from device tree.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nLoongArch: Fix missing NULL checks for kstrdup()\n\n1. Replace \"of_find_node_by_path(\"/\")\" with \"of_root\" to avoid multiple\ncalls to \"of_node_put()\".\n\n2. Fix a potential kernel oops during early boot when memory allocation\nfails while parsing CPU model from device tree.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\nLoongArch: Corrige la falta de comprobaciones de NULL para kstrdup()\n\n1. Reemplaza ’of_find_node_by_path(“/”)’ con ’of_root’ para evitar múltiples llamadas a ’of_node_put()’.\n\n2. Corrige un posible ’kernel oops’ durante el arranque temprano cuando falla la asignación de memoria al analizar el modelo de CPU del árbol de dispositivos.","source":"nvd"}],"published":"2026-04-24T14:35:41.961Z","modified":"2026-11-11T23:10:00.263Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"},"severities":[{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"}],"cwes":["CWE-476"],"affected":[{"ranges":[{"type":"git","introduced":"facc69f43502c135c16b97d5ded7253f15597912","fixed":"5e7fde2c551f86e6c3de3fd7a9b1f52806ac8db0","status":"affected"},{"type":"git","introduced":"70a2365e18affc5ebdaab1ca6a0b3c4f3aac2ee8","fixed":"a1da957c25cf751a2dce8fb7777f82ccbac0cb3e","status":"affected"},{"type":"git","introduced":"70a2365e18affc5ebdaab1ca6a0b3c4f3aac2ee8","fixed":"b61a309743322fb57fb9afa9aa3495ac758e4f5e","status":"affected"},{"type":"git","introduced":"70a2365e18affc5ebdaab1ca6a0b3c4f3aac2ee8","fixed":"3a28daa9b7d7c2ddf2c722e9e95d7e0928bf0cd1","status":"affected"},{"type":"git","version":"620805dc674eab3055543496a7ef25beb9ffd2a8","status":"affected"},{"type":"git","version":"8dfeedf9eceadc1a2fc9066b4c5230690d1cad48","status":"affected"},{"type":"semver","introduced":"6.12.43","fixed":"6.12.80","status":"affected"},{"type":"semver","introduced":"6.15.11","fixed":"6.16","status":"affected"},{"type":"semver","introduced":"6.16.2","fixed":"6.17","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.17","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.17","status":"unaffected"},{"type":"semver","introduced":"6.12.80","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.21","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"6.19.11","lastAffected":"6.19.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.0","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"6.12.43","fixed":"6.12.80"},{"status":"affected","introduced":"6.15.11","fixed":"6.16"},{"status":"affected","introduced":"6.16.2","fixed":"6.17"},{"status":"affected","introduced":"6.17.1","fixed":"6.18.21"},{"status":"affected","introduced":"6.19","fixed":"6.19.11"},{"status":"affected","version":"6.17"},{"status":"affected","version":"7.0"},{"status":"affected","version":"7.0"},{"status":"affected","version":"7.0"},{"status":"affected","version":"7.0"},{"status":"affected","version":"7.0"},{"status":"affected","version":"7.0"},{"status":"affected","version":"7.0"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/5e7fde2c551f86e6c3de3fd7a9b1f52806ac8db0","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/a1da957c25cf751a2dce8fb7777f82ccbac0cb3e","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/b61a309743322fb57fb9afa9aa3495ac758e4f5e","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/3a28daa9b7d7c2ddf2c722e9e95d7e0928bf0cd1","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-31559","url":"https://www.cve.org/CVERecord?id=CVE-2026-31559","licence":"CVE Terms of Use","modified":"2026-05-23T16:05:21.935Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-31559","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-31559","licence":"Public domain","modified":"2026-11-11T23:10:00.263Z"}],"updatedAt":"2026-11-25T22:59:19.483Z","epss":{"score":0.00127,"percentile":0.02536,"date":"2026-12-01T12:00:22.000Z"}}