[<prev] [next>] [day] [month] [year] [list]
Message-ID: <2025123023-CVE-2022-50875-4def@gregkh>
Date: Tue, 30 Dec 2025 13:23:24 +0100
From: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
To: linux-cve-announce@...r.kernel.org
Cc: Greg Kroah-Hartman <gregkh@...nel.org>
Subject: CVE-2022-50875: of: overlay: fix null pointer dereferencing in find_dup_cset_node_entry() and find_dup_cset_prop()
From: Greg Kroah-Hartman <gregkh@...nel.org>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
of: overlay: fix null pointer dereferencing in find_dup_cset_node_entry() and find_dup_cset_prop()
When kmalloc() fail to allocate memory in kasprintf(), fn_1 or fn_2 will
be NULL, and strcmp() will cause null pointer dereference.
The Linux kernel CVE team has assigned CVE-2022-50875 to this issue.
Affected and fixed versions
===========================
Issue introduced in 5.0 with commit 2fe0e8769df9fed5098daea7db933bc414c329d7 and fixed in 5.4.229 with commit 9ec5781879b4535ad59b5354b385825378e45618
Issue introduced in 5.0 with commit 2fe0e8769df9fed5098daea7db933bc414c329d7 and fixed in 5.10.163 with commit 2b4af99b44861646013821019dd13a4ac48c0219
Issue introduced in 5.0 with commit 2fe0e8769df9fed5098daea7db933bc414c329d7 and fixed in 5.15.86 with commit ce1b3a41e7964cb8dd56a702a95dd90ad27f51cd
Issue introduced in 5.0 with commit 2fe0e8769df9fed5098daea7db933bc414c329d7 and fixed in 6.0.16 with commit ab5bb7bbacf531de8e32912cc2e21f906113cee8
Issue introduced in 5.0 with commit 2fe0e8769df9fed5098daea7db933bc414c329d7 and fixed in 6.1.2 with commit 71d88c7453ec3d2ceff98e18ce4d6354abd3b5b6
Issue introduced in 5.0 with commit 2fe0e8769df9fed5098daea7db933bc414c329d7 and fixed in 6.2 with commit ee9d7a0e754568180a2f8ebc4aad226278a9116f
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-50875
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/overlay.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/9ec5781879b4535ad59b5354b385825378e45618
https://git.kernel.org/stable/c/2b4af99b44861646013821019dd13a4ac48c0219
https://git.kernel.org/stable/c/ce1b3a41e7964cb8dd56a702a95dd90ad27f51cd
https://git.kernel.org/stable/c/ab5bb7bbacf531de8e32912cc2e21f906113cee8
https://git.kernel.org/stable/c/71d88c7453ec3d2ceff98e18ce4d6354abd3b5b6
https://git.kernel.org/stable/c/ee9d7a0e754568180a2f8ebc4aad226278a9116f
Powered by blists - more mailing lists