blob: 9d380e5389b44b5f7b016860b26a5edce0c8faa8 [file] [log] [blame]
From bippy-5f407fcff5a0 Mon Sep 17 00:00:00 2001
From: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
To: <linux-cve-announce@vger.kernel.org>
Reply-to: <cve@kernel.org>, <linux-kernel@vger.kernel.org>
Subject: CVE-2024-58058: ubifs: skip dumping tnc tree when zroot is null
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
ubifs: skip dumping tnc tree when zroot is null
Clearing slab cache will free all znode in memory and make
c->zroot.znode = NULL, then dumping tnc tree will access
c->zroot.znode which cause null pointer dereference.
The Linux kernel CVE team has assigned CVE-2024-58058 to this issue.
Affected and fixed versions
===========================
Issue introduced in 2.6.27 with commit 1e51764a3c2ac05a23a22b2a95ddee4d9bffb16d and fixed in 5.4.291 with commit 428aff8f7cfb0d9a8854477648022cef96bcab28
Issue introduced in 2.6.27 with commit 1e51764a3c2ac05a23a22b2a95ddee4d9bffb16d and fixed in 5.10.235 with commit 6211c11fc20424bbc6d79c835c7c212b553ae898
Issue introduced in 2.6.27 with commit 1e51764a3c2ac05a23a22b2a95ddee4d9bffb16d and fixed in 5.15.179 with commit 1787cd67bb94b106555ffe64f887f6aa24b47010
Issue introduced in 2.6.27 with commit 1e51764a3c2ac05a23a22b2a95ddee4d9bffb16d and fixed in 6.1.129 with commit e01b55f261ccc96e347eba4931e4429d080d879d
Issue introduced in 2.6.27 with commit 1e51764a3c2ac05a23a22b2a95ddee4d9bffb16d and fixed in 6.6.76 with commit 40e25a3c0063935763717877bb2a814c081509ff
Issue introduced in 2.6.27 with commit 1e51764a3c2ac05a23a22b2a95ddee4d9bffb16d and fixed in 6.12.13 with commit 77e5266e3d3faa6bdcf20d9c68a8972f6aa06522
Issue introduced in 2.6.27 with commit 1e51764a3c2ac05a23a22b2a95ddee4d9bffb16d and fixed in 6.13.2 with commit 2a987950df825d0144370e700dc5fb337684ffba
Issue introduced in 2.6.27 with commit 1e51764a3c2ac05a23a22b2a95ddee4d9bffb16d and fixed in 6.14 with commit bdb0ca39e0acccf6771db49c3f94ed787d05f2d7
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-2024-58058
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:
fs/ubifs/debug.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/428aff8f7cfb0d9a8854477648022cef96bcab28
https://git.kernel.org/stable/c/6211c11fc20424bbc6d79c835c7c212b553ae898
https://git.kernel.org/stable/c/1787cd67bb94b106555ffe64f887f6aa24b47010
https://git.kernel.org/stable/c/e01b55f261ccc96e347eba4931e4429d080d879d
https://git.kernel.org/stable/c/40e25a3c0063935763717877bb2a814c081509ff
https://git.kernel.org/stable/c/77e5266e3d3faa6bdcf20d9c68a8972f6aa06522
https://git.kernel.org/stable/c/2a987950df825d0144370e700dc5fb337684ffba
https://git.kernel.org/stable/c/bdb0ca39e0acccf6771db49c3f94ed787d05f2d7