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
7
cve-2022-48672
linux kernel
off-by-one error
unflatten_dt_nodes
svace static analysis

AI Score

6.9

Confidence

Low

EPSS

0

Percentile

5.1%

SSVC

Exploitation

none

Automatable

no

Technical Impact

partial

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

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

AI Score

6.9

Confidence

Low

EPSS

0

Percentile

5.1%

SSVC

Exploitation

none

Automatable

no

Technical Impact

partial