CVE-2022-48672 (GCVE-0-2022-48672)

Vulnerability from cvelistv5 – Published: 2024-05-03 14:51 – Updated: 2025-05-04 08:20
VLAI?
Title
of: fdt: fix off-by-one error in unflatten_dt_nodes()
Summary
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.
Severity ?
No CVSS data available.
Assigner
Impacted products
Vendor Product Version
Linux Linux Affected: 78c44d910d3e5f96dc6b3695fc1e4efd7c46a455 , < cbdda20ce363356698835185801a58a28f644853 (git)
Affected: 78c44d910d3e5f96dc6b3695fc1e4efd7c46a455 , < 2566706ac6393386a4e7c4ce23fe17f4c98d9aa0 (git)
Affected: 78c44d910d3e5f96dc6b3695fc1e4efd7c46a455 , < e0e88c25f88b9805572263c9ed20f1d88742feaf (git)
Affected: 78c44d910d3e5f96dc6b3695fc1e4efd7c46a455 , < ee4369260e77821602102dcc7d792de39a56365c (git)
Affected: 78c44d910d3e5f96dc6b3695fc1e4efd7c46a455 , < ba6b9f7cc1108bad6e2c53b1d6e0156379188db7 (git)
Affected: 78c44d910d3e5f96dc6b3695fc1e4efd7c46a455 , < 2133f451311671c7c42b5640d2b999326b39aa0e (git)
Affected: 78c44d910d3e5f96dc6b3695fc1e4efd7c46a455 , < 2f945a792f67815abca26fa8a5e863ccf3fa1181 (git)
Create a notification for this product.
    Linux Linux Affected: 4.7
Unaffected: 0 , < 4.7 (semver)
Unaffected: 4.14.295 , ≤ 4.14.* (semver)
Unaffected: 4.19.260 , ≤ 4.19.* (semver)
Unaffected: 5.4.215 , ≤ 5.4.* (semver)
Unaffected: 5.10.145 , ≤ 5.10.* (semver)
Unaffected: 5.15.70 , ≤ 5.15.* (semver)
Unaffected: 5.19.11 , ≤ 5.19.* (semver)
Unaffected: 6.0 , ≤ * (original_commit_for_fix)
Create a notification for this product.
Show details on NVD website

{
  "containers": {
    "adp": [
      {
        "metrics": [
          {
            "other": {
              "content": {
                "id": "CVE-2022-48672",
                "options": [
                  {
                    "Exploitation": "none"
                  },
                  {
                    "Automatable": "no"
                  },
                  {
                    "Technical Impact": "partial"
                  }
                ],
                "role": "CISA Coordinator",
                "timestamp": "2024-06-12T15:31:42.544378Z",
                "version": "2.0.3"
              },
              "type": "ssvc"
            }
          }
        ],
        "providerMetadata": {
          "dateUpdated": "2024-06-12T15:31:56.172Z",
          "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
          "shortName": "CISA-ADP"
        },
        "title": "CISA ADP Vulnrichment"
      },
      {
        "providerMetadata": {
          "dateUpdated": "2024-08-03T15:17:55.720Z",
          "orgId": "af854a3a-2127-422b-91ae-364da2661108",
          "shortName": "CVE"
        },
        "references": [
          {
            "tags": [
              "x_transferred"
            ],
            "url": "https://git.kernel.org/stable/c/cbdda20ce363356698835185801a58a28f644853"
          },
          {
            "tags": [
              "x_transferred"
            ],
            "url": "https://git.kernel.org/stable/c/2566706ac6393386a4e7c4ce23fe17f4c98d9aa0"
          },
          {
            "tags": [
              "x_transferred"
            ],
            "url": "https://git.kernel.org/stable/c/e0e88c25f88b9805572263c9ed20f1d88742feaf"
          },
          {
            "tags": [
              "x_transferred"
            ],
            "url": "https://git.kernel.org/stable/c/ee4369260e77821602102dcc7d792de39a56365c"
          },
          {
            "tags": [
              "x_transferred"
            ],
            "url": "https://git.kernel.org/stable/c/ba6b9f7cc1108bad6e2c53b1d6e0156379188db7"
          },
          {
            "tags": [
              "x_transferred"
            ],
            "url": "https://git.kernel.org/stable/c/2133f451311671c7c42b5640d2b999326b39aa0e"
          },
          {
            "tags": [
              "x_transferred"
            ],
            "url": "https://git.kernel.org/stable/c/2f945a792f67815abca26fa8a5e863ccf3fa1181"
          }
        ],
        "title": "CVE Program Container"
      }
    ],
    "cna": {
      "affected": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "drivers/of/fdt.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "cbdda20ce363356698835185801a58a28f644853",
              "status": "affected",
              "version": "78c44d910d3e5f96dc6b3695fc1e4efd7c46a455",
              "versionType": "git"
            },
            {
              "lessThan": "2566706ac6393386a4e7c4ce23fe17f4c98d9aa0",
              "status": "affected",
              "version": "78c44d910d3e5f96dc6b3695fc1e4efd7c46a455",
              "versionType": "git"
            },
            {
              "lessThan": "e0e88c25f88b9805572263c9ed20f1d88742feaf",
              "status": "affected",
              "version": "78c44d910d3e5f96dc6b3695fc1e4efd7c46a455",
              "versionType": "git"
            },
            {
              "lessThan": "ee4369260e77821602102dcc7d792de39a56365c",
              "status": "affected",
              "version": "78c44d910d3e5f96dc6b3695fc1e4efd7c46a455",
              "versionType": "git"
            },
            {
              "lessThan": "ba6b9f7cc1108bad6e2c53b1d6e0156379188db7",
              "status": "affected",
              "version": "78c44d910d3e5f96dc6b3695fc1e4efd7c46a455",
              "versionType": "git"
            },
            {
              "lessThan": "2133f451311671c7c42b5640d2b999326b39aa0e",
              "status": "affected",
              "version": "78c44d910d3e5f96dc6b3695fc1e4efd7c46a455",
              "versionType": "git"
            },
            {
              "lessThan": "2f945a792f67815abca26fa8a5e863ccf3fa1181",
              "status": "affected",
              "version": "78c44d910d3e5f96dc6b3695fc1e4efd7c46a455",
              "versionType": "git"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "drivers/of/fdt.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "4.7"
            },
            {
              "lessThan": "4.7",
              "status": "unaffected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "4.14.*",
              "status": "unaffected",
              "version": "4.14.295",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "4.19.*",
              "status": "unaffected",
              "version": "4.19.260",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.4.*",
              "status": "unaffected",
              "version": "5.4.215",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.10.*",
              "status": "unaffected",
              "version": "5.10.145",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.15.*",
              "status": "unaffected",
              "version": "5.15.70",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.19.*",
              "status": "unaffected",
              "version": "5.19.11",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "*",
              "status": "unaffected",
              "version": "6.0",
              "versionType": "original_commit_for_fix"
            }
          ]
        }
      ],
      "cpeApplicability": [
        {
          "nodes": [
            {
              "cpeMatch": [
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "4.14.295",
                  "versionStartIncluding": "4.7",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "4.19.260",
                  "versionStartIncluding": "4.7",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.4.215",
                  "versionStartIncluding": "4.7",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.10.145",
                  "versionStartIncluding": "4.7",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.15.70",
                  "versionStartIncluding": "4.7",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.19.11",
                  "versionStartIncluding": "4.7",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.0",
                  "versionStartIncluding": "4.7",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nof: fdt: fix off-by-one error in unflatten_dt_nodes()\n\nCommit 78c44d910d3e (\"drivers/of: Fix depth when unflattening devicetree\")\nforgot to fix up the depth check in the loop body in unflatten_dt_nodes()\nwhich makes it possible to overflow the nps[] buffer...\n\nFound by Linux Verification Center (linuxtesting.org) with the SVACE static\nanalysis tool."
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2025-05-04T08:20:59.223Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "references": [
        {
          "url": "https://git.kernel.org/stable/c/cbdda20ce363356698835185801a58a28f644853"
        },
        {
          "url": "https://git.kernel.org/stable/c/2566706ac6393386a4e7c4ce23fe17f4c98d9aa0"
        },
        {
          "url": "https://git.kernel.org/stable/c/e0e88c25f88b9805572263c9ed20f1d88742feaf"
        },
        {
          "url": "https://git.kernel.org/stable/c/ee4369260e77821602102dcc7d792de39a56365c"
        },
        {
          "url": "https://git.kernel.org/stable/c/ba6b9f7cc1108bad6e2c53b1d6e0156379188db7"
        },
        {
          "url": "https://git.kernel.org/stable/c/2133f451311671c7c42b5640d2b999326b39aa0e"
        },
        {
          "url": "https://git.kernel.org/stable/c/2f945a792f67815abca26fa8a5e863ccf3fa1181"
        }
      ],
      "title": "of: fdt: fix off-by-one error in unflatten_dt_nodes()",
      "x_generator": {
        "engine": "bippy-1.2.0"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2022-48672",
    "datePublished": "2024-05-03T14:51:18.085Z",
    "dateReserved": "2024-02-25T13:44:28.321Z",
    "dateUpdated": "2025-05-04T08:20:59.223Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.1",
  "vulnerability-lookup:meta": {
    "vulnrichment": {
      "containers": "{\"adp\": [{\"title\": \"CVE Program Container\", \"references\": [{\"url\": \"https://git.kernel.org/stable/c/cbdda20ce363356698835185801a58a28f644853\", \"tags\": [\"x_transferred\"]}, {\"url\": \"https://git.kernel.org/stable/c/2566706ac6393386a4e7c4ce23fe17f4c98d9aa0\", \"tags\": [\"x_transferred\"]}, {\"url\": \"https://git.kernel.org/stable/c/e0e88c25f88b9805572263c9ed20f1d88742feaf\", \"tags\": [\"x_transferred\"]}, {\"url\": \"https://git.kernel.org/stable/c/ee4369260e77821602102dcc7d792de39a56365c\", \"tags\": [\"x_transferred\"]}, {\"url\": \"https://git.kernel.org/stable/c/ba6b9f7cc1108bad6e2c53b1d6e0156379188db7\", \"tags\": [\"x_transferred\"]}, {\"url\": \"https://git.kernel.org/stable/c/2133f451311671c7c42b5640d2b999326b39aa0e\", \"tags\": [\"x_transferred\"]}, {\"url\": \"https://git.kernel.org/stable/c/2f945a792f67815abca26fa8a5e863ccf3fa1181\", \"tags\": [\"x_transferred\"]}], \"providerMetadata\": {\"orgId\": \"af854a3a-2127-422b-91ae-364da2661108\", \"shortName\": \"CVE\", \"dateUpdated\": \"2024-08-03T15:17:55.720Z\"}}, {\"title\": \"CISA ADP Vulnrichment\", \"metrics\": [{\"other\": {\"type\": \"ssvc\", \"content\": {\"id\": \"CVE-2022-48672\", \"role\": \"CISA Coordinator\", \"options\": [{\"Exploitation\": \"none\"}, {\"Automatable\": \"no\"}, {\"Technical Impact\": \"partial\"}], \"version\": \"2.0.3\", \"timestamp\": \"2024-06-12T15:31:42.544378Z\"}}}], \"providerMetadata\": {\"orgId\": \"134c704f-9b21-4f2e-91b3-4a467353bcc0\", \"shortName\": \"CISA-ADP\", \"dateUpdated\": \"2024-06-12T15:31:52.326Z\"}}], \"cna\": {\"title\": \"of: fdt: fix off-by-one error in unflatten_dt_nodes()\", \"affected\": [{\"repo\": \"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\", \"vendor\": \"Linux\", \"product\": \"Linux\", \"versions\": [{\"status\": \"affected\", \"version\": \"78c44d910d3e5f96dc6b3695fc1e4efd7c46a455\", \"lessThan\": \"cbdda20ce363356698835185801a58a28f644853\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"78c44d910d3e5f96dc6b3695fc1e4efd7c46a455\", \"lessThan\": \"2566706ac6393386a4e7c4ce23fe17f4c98d9aa0\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"78c44d910d3e5f96dc6b3695fc1e4efd7c46a455\", \"lessThan\": \"e0e88c25f88b9805572263c9ed20f1d88742feaf\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"78c44d910d3e5f96dc6b3695fc1e4efd7c46a455\", \"lessThan\": \"ee4369260e77821602102dcc7d792de39a56365c\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"78c44d910d3e5f96dc6b3695fc1e4efd7c46a455\", \"lessThan\": \"ba6b9f7cc1108bad6e2c53b1d6e0156379188db7\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"78c44d910d3e5f96dc6b3695fc1e4efd7c46a455\", \"lessThan\": \"2133f451311671c7c42b5640d2b999326b39aa0e\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"78c44d910d3e5f96dc6b3695fc1e4efd7c46a455\", \"lessThan\": \"2f945a792f67815abca26fa8a5e863ccf3fa1181\", \"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\": \"semver\"}, {\"status\": \"unaffected\", \"version\": \"4.14.295\", \"versionType\": \"semver\", \"lessThanOrEqual\": \"4.14.*\"}, {\"status\": \"unaffected\", \"version\": \"4.19.260\", \"versionType\": \"semver\", \"lessThanOrEqual\": \"4.19.*\"}, {\"status\": \"unaffected\", \"version\": \"5.4.215\", \"versionType\": \"semver\", \"lessThanOrEqual\": \"5.4.*\"}, {\"status\": \"unaffected\", \"version\": \"5.10.145\", \"versionType\": \"semver\", \"lessThanOrEqual\": \"5.10.*\"}, {\"status\": \"unaffected\", \"version\": \"5.15.70\", \"versionType\": \"semver\", \"lessThanOrEqual\": \"5.15.*\"}, {\"status\": \"unaffected\", \"version\": \"5.19.11\", \"versionType\": \"semver\", \"lessThanOrEqual\": \"5.19.*\"}, {\"status\": \"unaffected\", \"version\": \"6.0\", \"versionType\": \"original_commit_for_fix\", \"lessThanOrEqual\": \"*\"}], \"programFiles\": [\"drivers/of/fdt.c\"], \"defaultStatus\": \"affected\"}], \"references\": [{\"url\": \"https://git.kernel.org/stable/c/cbdda20ce363356698835185801a58a28f644853\"}, {\"url\": \"https://git.kernel.org/stable/c/2566706ac6393386a4e7c4ce23fe17f4c98d9aa0\"}, {\"url\": \"https://git.kernel.org/stable/c/e0e88c25f88b9805572263c9ed20f1d88742feaf\"}, {\"url\": \"https://git.kernel.org/stable/c/ee4369260e77821602102dcc7d792de39a56365c\"}, {\"url\": \"https://git.kernel.org/stable/c/ba6b9f7cc1108bad6e2c53b1d6e0156379188db7\"}, {\"url\": \"https://git.kernel.org/stable/c/2133f451311671c7c42b5640d2b999326b39aa0e\"}, {\"url\": \"https://git.kernel.org/stable/c/2f945a792f67815abca26fa8a5e863ccf3fa1181\"}], \"x_generator\": {\"engine\": \"bippy-1.2.0\"}, \"descriptions\": [{\"lang\": \"en\", \"value\": \"In the Linux kernel, the following vulnerability has been resolved:\\n\\nof: fdt: fix off-by-one error in unflatten_dt_nodes()\\n\\nCommit 78c44d910d3e (\\\"drivers/of: Fix depth when unflattening devicetree\\\")\\nforgot to fix up the depth check in the loop body in unflatten_dt_nodes()\\nwhich makes it possible to overflow the nps[] buffer...\\n\\nFound by Linux Verification Center (linuxtesting.org) with the SVACE static\\nanalysis tool.\"}], \"cpeApplicability\": [{\"nodes\": [{\"negate\": false, \"cpeMatch\": [{\"criteria\": \"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\", \"vulnerable\": true, \"versionEndExcluding\": \"4.14.295\", \"versionStartIncluding\": \"4.7\"}, {\"criteria\": \"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\", \"vulnerable\": true, \"versionEndExcluding\": \"4.19.260\", \"versionStartIncluding\": \"4.7\"}, {\"criteria\": \"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\", \"vulnerable\": true, \"versionEndExcluding\": \"5.4.215\", \"versionStartIncluding\": \"4.7\"}, {\"criteria\": \"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\", \"vulnerable\": true, \"versionEndExcluding\": \"5.10.145\", \"versionStartIncluding\": \"4.7\"}, {\"criteria\": \"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\", \"vulnerable\": true, \"versionEndExcluding\": \"5.15.70\", \"versionStartIncluding\": \"4.7\"}, {\"criteria\": \"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\", \"vulnerable\": true, \"versionEndExcluding\": \"5.19.11\", \"versionStartIncluding\": \"4.7\"}, {\"criteria\": \"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\", \"vulnerable\": true, \"versionEndExcluding\": \"6.0\", \"versionStartIncluding\": \"4.7\"}], \"operator\": \"OR\"}]}], \"providerMetadata\": {\"orgId\": \"416baaa9-dc9f-4396-8d5f-8c081fb06d67\", \"shortName\": \"Linux\", \"dateUpdated\": \"2025-05-04T08:20:59.223Z\"}}}",
      "cveMetadata": "{\"cveId\": \"CVE-2022-48672\", \"state\": \"PUBLISHED\", \"dateUpdated\": \"2025-05-04T08:20:59.223Z\", \"dateReserved\": \"2024-02-25T13:44:28.321Z\", \"assignerOrgId\": \"416baaa9-dc9f-4396-8d5f-8c081fb06d67\", \"datePublished\": \"2024-05-03T14:51:18.085Z\", \"assignerShortName\": \"Linux\"}",
      "dataType": "CVE_RECORD",
      "dataVersion": "5.1"
    }
  }
}


Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Sightings

Author Source Type Date

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or observed by the user.
  • Confirmed: The vulnerability has been validated from an analyst's perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
  • Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
  • Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
  • Not confirmed: The user expressed doubt about the validity of the vulnerability.
  • Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.


Loading…

Detection rules are retrieved from Rulezet.

Loading…

Loading…