[<prev] [next>] [day] [month] [year] [list]
Message-ID: <2025072506-CVE-2025-38456-3c0a@gregkh>
Date: Fri, 25 Jul 2025 17:28:18 +0200
From: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
To: linux-cve-announce@...r.kernel.org
Cc: Greg Kroah-Hartman <gregkh@...nel.org>
Subject: CVE-2025-38456: ipmi:msghandler: Fix potential memory corruption in ipmi_create_user()
From: Greg Kroah-Hartman <gregkh@...nel.org>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
ipmi:msghandler: Fix potential memory corruption in ipmi_create_user()
The "intf" list iterator is an invalid pointer if the correct
"intf->intf_num" is not found. Calling atomic_dec(&intf->nr_users) on
and invalid pointer will lead to memory corruption.
We don't really need to call atomic_dec() if we haven't called
atomic_add_return() so update the if (intf->in_shutdown) path as well.
The Linux kernel CVE team has assigned CVE-2025-38456 to this issue.
Affected and fixed versions
===========================
Issue introduced in 5.19 with commit 8e76741c3d8b20dfa2d6c30fa10ff927cfd93d82 and fixed in 6.1.146 with commit cbc1670297f675854e982d23c8583900ff0cc67a
Issue introduced in 5.19 with commit 8e76741c3d8b20dfa2d6c30fa10ff927cfd93d82 and fixed in 6.6.99 with commit e2d5c005dfc96fe857676d1d8ac46b29275cb89b
Issue introduced in 5.19 with commit 8e76741c3d8b20dfa2d6c30fa10ff927cfd93d82 and fixed in 6.12.39 with commit 9e0d33e75c1604c3fad5586ad4dfa3b2695a3950
Issue introduced in 5.19 with commit 8e76741c3d8b20dfa2d6c30fa10ff927cfd93d82 and fixed in 6.15.7 with commit 7c1a6ddb99858e7d68961f74ae27caeeeca67b6a
Issue introduced in 5.19 with commit 8e76741c3d8b20dfa2d6c30fa10ff927cfd93d82 and fixed in 6.16-rc1 with commit fa332f5dc6fc662ad7d3200048772c96b861cf6b
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-2025-38456
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/char/ipmi/ipmi_msghandler.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/cbc1670297f675854e982d23c8583900ff0cc67a
https://git.kernel.org/stable/c/e2d5c005dfc96fe857676d1d8ac46b29275cb89b
https://git.kernel.org/stable/c/9e0d33e75c1604c3fad5586ad4dfa3b2695a3950
https://git.kernel.org/stable/c/7c1a6ddb99858e7d68961f74ae27caeeeca67b6a
https://git.kernel.org/stable/c/fa332f5dc6fc662ad7d3200048772c96b861cf6b
Powered by blists - more mailing lists