LoongArch: Fix missing NULL checks for kstrdup()
Summary
| CVE | CVE-2026-31559 |
|---|---|
| State | PUBLISHED |
| Assigner | Linux |
| Source Priority | CVE Program / NVD first with legacy fallback |
| Published | 2026-04-24 15:16:30 UTC |
| Updated | 2026-04-27 20:13:21 UTC |
| Description | In the Linux kernel, the following vulnerability has been resolved: LoongArch: Fix missing NULL checks for kstrdup() 1. Replace "of_find_node_by_path("/")" with "of_root" to avoid multiple calls to "of_node_put()". 2. Fix a potential kernel oops during early boot when memory allocation fails while parsing CPU model from device tree. |
Risk And Classification
Primary CVSS: v3.1 5.5 MEDIUM from [email protected]
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
EPSS: 0.000200000 probability, percentile 0.056500000 (date 2026-04-27)
Problem Types: CWE-476
CVSS v3.1 Breakdown
Attack Vector
LocalAttack Complexity
LowPrivileges Required
LowUser Interaction
NoneScope
UnchangedConfidentiality
NoneIntegrity
NoneAvailability
HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
NVD Known Affected Configurations (CPE 2.3)
| Type | Vendor | Product | Version | Update | Edition | Language |
|---|---|---|---|---|---|---|
| Operating System | Linux | Linux Kernel | All | All | All | All |
Vendor Declared Affected Products
| Source | Vendor | Product | Version | Platforms |
|---|---|---|---|---|
| CNA | Linux | Linux | affected facc69f43502c135c16b97d5ded7253f15597912 5e7fde2c551f86e6c3de3fd7a9b1f52806ac8db0 git | Not specified |
| CNA | Linux | Linux | affected 70a2365e18affc5ebdaab1ca6a0b3c4f3aac2ee8 a1da957c25cf751a2dce8fb7777f82ccbac0cb3e git | Not specified |
| CNA | Linux | Linux | affected 70a2365e18affc5ebdaab1ca6a0b3c4f3aac2ee8 b61a309743322fb57fb9afa9aa3495ac758e4f5e git | Not specified |
| CNA | Linux | Linux | affected 70a2365e18affc5ebdaab1ca6a0b3c4f3aac2ee8 3a28daa9b7d7c2ddf2c722e9e95d7e0928bf0cd1 git | Not specified |
| CNA | Linux | Linux | affected 620805dc674eab3055543496a7ef25beb9ffd2a8 git | Not specified |
| CNA | Linux | Linux | affected 8dfeedf9eceadc1a2fc9066b4c5230690d1cad48 git | Not specified |
| CNA | Linux | Linux | affected 6.17 | Not specified |
| CNA | Linux | Linux | unaffected 6.17 semver | Not specified |
| CNA | Linux | Linux | unaffected 6.12.80 6.12.* semver | Not specified |
| CNA | Linux | Linux | unaffected 6.18.21 6.18.* semver | Not specified |
| CNA | Linux | Linux | unaffected 6.19.11 6.19.* semver | Not specified |
| CNA | Linux | Linux | unaffected 7.0 * original_commit_for_fix | Not specified |
References
| Reference | Source | Link | Tags |
|---|---|---|---|
| git.kernel.org/stable/c/b61a309743322fb57fb9afa9aa3495ac758e4f5e | 416baaa9-dc9f-4396-8d5f-8c081fb06d67 | git.kernel.org | Patch |
| git.kernel.org/stable/c/5e7fde2c551f86e6c3de3fd7a9b1f52806ac8db0 | 416baaa9-dc9f-4396-8d5f-8c081fb06d67 | git.kernel.org | Patch |
| git.kernel.org/stable/c/a1da957c25cf751a2dce8fb7777f82ccbac0cb3e | 416baaa9-dc9f-4396-8d5f-8c081fb06d67 | git.kernel.org | Patch |
| git.kernel.org/stable/c/3a28daa9b7d7c2ddf2c722e9e95d7e0928bf0cd1 | 416baaa9-dc9f-4396-8d5f-8c081fb06d67 | git.kernel.org | Patch |
| CVE Program record | CVE.ORG | www.cve.org | canonical |
| NVD vulnerability detail | NVD | nvd.nist.gov | canonical, analysis |
No vendor comments have been submitted for this CVE.
There are currently no legacy QID mappings associated with this CVE.