linux-cve-announce.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
To: linux-cve-announce@vger.kernel.org
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Subject: CVE-2022-48672: of: fdt: fix off-by-one error in unflatten_dt_nodes()
Date: Fri,  3 May 2024 16:52:17 +0200	[thread overview]
Message-ID: <2024050318-CVE-2022-48672-b6d9@gregkh> (raw)

Description
===========

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.

The Linux kernel CVE team has assigned CVE-2022-48672 to this issue.


Affected and fixed versions
===========================

	Issue introduced in 4.7 with commit 78c44d910d3e and fixed in 4.14.295 with commit cbdda20ce363
	Issue introduced in 4.7 with commit 78c44d910d3e and fixed in 4.19.260 with commit 2566706ac639
	Issue introduced in 4.7 with commit 78c44d910d3e and fixed in 5.4.215 with commit e0e88c25f88b
	Issue introduced in 4.7 with commit 78c44d910d3e and fixed in 5.10.145 with commit ee4369260e77
	Issue introduced in 4.7 with commit 78c44d910d3e and fixed in 5.15.70 with commit ba6b9f7cc110
	Issue introduced in 4.7 with commit 78c44d910d3e and fixed in 5.19.11 with commit 2133f4513116
	Issue introduced in 4.7 with commit 78c44d910d3e and fixed in 6.0 with commit 2f945a792f67

Please see https://www.kernel.org for a full list of currently supported
kernel versions by the kernel community.

Unaffected versions might change over time as fixes are backported to
older supported kernel versions.  The official CVE entry at
	https://cve.org/CVERecord/?id=CVE-2022-48672
will be updated if fixes are backported, please check that for the most
up to date information about this issue.


Affected files
==============

The file(s) affected by this issue are:
	drivers/of/fdt.c


Mitigation
==========

The Linux kernel CVE team recommends that you update to the latest
stable kernel version for this, and many other bugfixes.  Individual
changes are never tested alone, but rather are part of a larger kernel
release.  Cherry-picking individual commits is not recommended or
supported by the Linux kernel community at all.  If however, updating to
the latest release is impossible, the individual changes to resolve this
issue can be found at these commits:
	https://git.kernel.org/stable/c/cbdda20ce363356698835185801a58a28f644853
	https://git.kernel.org/stable/c/2566706ac6393386a4e7c4ce23fe17f4c98d9aa0
	https://git.kernel.org/stable/c/e0e88c25f88b9805572263c9ed20f1d88742feaf
	https://git.kernel.org/stable/c/ee4369260e77821602102dcc7d792de39a56365c
	https://git.kernel.org/stable/c/ba6b9f7cc1108bad6e2c53b1d6e0156379188db7
	https://git.kernel.org/stable/c/2133f451311671c7c42b5640d2b999326b39aa0e
	https://git.kernel.org/stable/c/2f945a792f67815abca26fa8a5e863ccf3fa1181

                 reply	other threads:[~2024-05-03 14:52 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=2024050318-CVE-2022-48672-b6d9@gregkh \
    --to=gregkh@linuxfoundation.org \
    --cc=cve@kernel.org \
    --cc=linux-cve-announce@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).