{"id":"CVE-2026-31559","summary":"LoongArch: Fix missing NULL checks for kstrdup()","details":"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.","modified":"2026-11-13T04:04:09.316058613Z","published":"2026-04-24T14:35:41.961Z","database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/31xxx/CVE-2026-31559.json"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/3a28daa9b7d7c2ddf2c722e9e95d7e0928bf0cd1"},{"type":"WEB","url":"https://git.kernel.org/stable/c/5e7fde2c551f86e6c3de3fd7a9b1f52806ac8db0"},{"type":"WEB","url":"https://git.kernel.org/stable/c/a1da957c25cf751a2dce8fb7777f82ccbac0cb3e"},{"type":"WEB","url":"https://git.kernel.org/stable/c/b61a309743322fb57fb9afa9aa3495ac758e4f5e"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/31xxx/CVE-2026-31559.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-31559"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"facc69f43502c135c16b97d5ded7253f15597912"},{"fixed":"5e7fde2c551f86e6c3de3fd7a9b1f52806ac8db0"}]},{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"70a2365e18affc5ebdaab1ca6a0b3c4f3aac2ee8"},{"fixed":"a1da957c25cf751a2dce8fb7777f82ccbac0cb3e"},{"fixed":"b61a309743322fb57fb9afa9aa3495ac758e4f5e"},{"fixed":"3a28daa9b7d7c2ddf2c722e9e95d7e0928bf0cd1"}]},{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"620805dc674eab3055543496a7ef25beb9ffd2a8"}]},{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"8dfeedf9eceadc1a2fc9066b4c5230690d1cad48"}]}],"versions":["v6.12.79","v6.12.78","v6.12.77","v6.12.76","v6.12.75","v6.12.74","v6.12.73","v6.12.72","v6.12.71","v6.12.70","v6.12.69","v6.12.68","v6.12.67","v6.12.66","v6.12.65","v6.12.64","v6.12.63","v6.12.62","v6.12.61","v6.12.60","v6.12.59","v6.12.58","v6.12.57","v6.12.56","v6.12.55","v6.12.54","v6.12.53","v6.12.52","v6.12.51","v6.12.50","v6.12.49","v6.12.48","v6.12.47","v6.12.46","v6.12.45","v6.12.44","v6.12.43","v6.15.11","v6.16.12","v6.16.11","v6.16.10","v6.16.9","v6.16.8","v6.16.7","v6.16.6","v6.16.5","v6.16.4","v6.16.3","v6.16.2"],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2026-31559.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"6.12.43"},{"fixed":"6.12.80"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.15.11"},{"fixed":"6.16"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.16.2"},{"fixed":"6.17"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.17.0"},{"fixed":"6.18.21"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.19.0"},{"fixed":"6.19.11"}]}],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2026-31559.json"}}],"schema_version":"1.9.2"}