blob: dcc15e58807d9e872c30347c274061d8109a0d7b [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-58051: ipmi: ipmb: Add check devm_kasprintf() returned value
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
ipmi: ipmb: Add check devm_kasprintf() returned value
devm_kasprintf() can return a NULL pointer on failure but this
returned value is not checked.
The Linux kernel CVE team has assigned CVE-2024-58051 to this issue.
Affected and fixed versions
===========================
Issue introduced in 5.3 with commit 51bd6f291583684f495ea498984dfc22049d7fd2 and fixed in 5.4.291 with commit 1a8a17c5ce9cb5a82797602bff9819ac732d2ff5
Issue introduced in 5.3 with commit 51bd6f291583684f495ea498984dfc22049d7fd2 and fixed in 5.10.235 with commit caac520350546e736894d14e051b64a9edb3600c
Issue introduced in 5.3 with commit 51bd6f291583684f495ea498984dfc22049d7fd2 and fixed in 5.15.179 with commit eb288ab33fd87579789cb331209ff09e988ff4f7
Issue introduced in 5.3 with commit 51bd6f291583684f495ea498984dfc22049d7fd2 and fixed in 6.1.129 with commit 312a6445036d692bc5665307eeafa4508c33c4b5
Issue introduced in 5.3 with commit 51bd6f291583684f495ea498984dfc22049d7fd2 and fixed in 6.6.76 with commit 4c9caf86d04dcb10e9fd8cd9db8eb79b5bfcc4d8
Issue introduced in 5.3 with commit 51bd6f291583684f495ea498984dfc22049d7fd2 and fixed in 6.12.13 with commit e529fbcf1f35f5fc3c839df7f06c3e3d02579715
Issue introduced in 5.3 with commit 51bd6f291583684f495ea498984dfc22049d7fd2 and fixed in 6.13.2 with commit a63284d415d4d114abd8be6e66a9558f3ca0702d
Issue introduced in 5.3 with commit 51bd6f291583684f495ea498984dfc22049d7fd2 and fixed in 6.14 with commit 2378bd0b264ad3a1f76bd957caf33ee0c7945351
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-58051
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/ipmb_dev_int.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/1a8a17c5ce9cb5a82797602bff9819ac732d2ff5
https://git.kernel.org/stable/c/caac520350546e736894d14e051b64a9edb3600c
https://git.kernel.org/stable/c/eb288ab33fd87579789cb331209ff09e988ff4f7
https://git.kernel.org/stable/c/312a6445036d692bc5665307eeafa4508c33c4b5
https://git.kernel.org/stable/c/4c9caf86d04dcb10e9fd8cd9db8eb79b5bfcc4d8
https://git.kernel.org/stable/c/e529fbcf1f35f5fc3c839df7f06c3e3d02579715
https://git.kernel.org/stable/c/a63284d415d4d114abd8be6e66a9558f3ca0702d
https://git.kernel.org/stable/c/2378bd0b264ad3a1f76bd957caf33ee0c7945351