Lucene search

K
vulnrichmentLinuxVULNRICHMENT:CVE-2022-48672
HistoryMay 03, 2024 - 2:51 p.m.

CVE-2022-48672 of: fdt: fix off-by-one error in unflatten_dt_nodes()

2024-05-0314:51:18
Linux
github.com
1
cve-2022-48672
linux kernel
off-by-one error
unflatten_dt_nodes
svace static analysis

6.9 Medium

AI Score

Confidence

Low

0.0004 Low

EPSS

Percentile

5.1%

In the Linux kernel, the following vulnerability has been resolved:

of: fdt: fix off-by-one error in unflatten_dt_nodes()

Commit 78c44d910d3e (“drivers/of: Fix depth when unflattening devicetree”)
forgot to fix up the depth check in the loop body in unflatten_dt_nodes()
which makes it possible to overflow the nps[] buffer…

Found by Linux Verification Center (linuxtesting.org) with the SVACE static
analysis tool.

CNA Affected

[
  {
    "product": "Linux",
    "vendor": "Linux",
    "defaultStatus": "unaffected",
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "programFiles": [
      "drivers/of/fdt.c"
    ],
    "versions": [
      {
        "version": "78c44d910d3e",
        "lessThan": "cbdda20ce363",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "78c44d910d3e",
        "lessThan": "2566706ac639",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "78c44d910d3e",
        "lessThan": "e0e88c25f88b",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "78c44d910d3e",
        "lessThan": "ee4369260e77",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "78c44d910d3e",
        "lessThan": "ba6b9f7cc110",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "78c44d910d3e",
        "lessThan": "2133f4513116",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "78c44d910d3e",
        "lessThan": "2f945a792f67",
        "status": "affected",
        "versionType": "git"
      }
    ]
  },
  {
    "product": "Linux",
    "vendor": "Linux",
    "defaultStatus": "affected",
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "programFiles": [
      "drivers/of/fdt.c"
    ],
    "versions": [
      {
        "version": "4.7",
        "status": "affected"
      },
      {
        "version": "0",
        "lessThan": "4.7",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "4.14.295",
        "lessThanOrEqual": "4.14.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "4.19.260",
        "lessThanOrEqual": "4.19.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "5.4.215",
        "lessThanOrEqual": "5.4.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "5.10.145",
        "lessThanOrEqual": "5.10.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "5.15.70",
        "lessThanOrEqual": "5.15.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "5.19.11",
        "lessThanOrEqual": "5.19.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "6.0",
        "lessThanOrEqual": "*",
        "status": "unaffected",
        "versionType": "original_commit_for_fix"
      }
    ]
  }
]

6.9 Medium

AI Score

Confidence

Low

0.0004 Low

EPSS

Percentile

5.1%