CVE-2026-72267: fbdev: carminefb: fix potential memory leak in alloc_carmine_fb()
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
fbdev: carminefb: fix potential memory leak in alloc_carmine_fb()
The memory allocated for modelist in fb_videomode_to_modelist() is not freed in the subsequent error path.
Fix that by calling fb_destroy_modelist()
The Linux kernel CVE team has assigned CVE-2026-72267 to this issue.
Affected and fixed versions
===========================
Issue introduced in 2.6.27 with commit 2ece5f43b041b96fa2a05107a10a6b0ea0c03a3b and fixed in 5.10.261 with commit 97b6c3f6e82a526d95dcfbfcf1c42ba44c61c3d6 Issue introduced in 2.6.27 with commit 2ece5f43b041b96fa2a05107a10a6b0ea0c03a3b and fixed in 5.15.212 with commit 6069044e74b7510bf2f034ccd049bc962fb9c765 Issue introduced in 2.6.27 with commit 2ece5f43b041b96fa2a05107a10a6b0ea0c03a3b and fixed in 6.1.178 with commit b51990be8411335c263b51e9f4def1e84bfaa923 Issue introduced in 2.6.27 with commit 2ece5f43b041b96fa2a05107a10a6b0ea0c03a3b and fixed in 6.6.145 with commit d21e6747f3f68dcce59b5d2205f98633d28f69eb Issue introduced in 2.6.27 with commit 2ece5f43b041b96fa2a05107a10a6b0ea0c03a3b and fixed in 6.12.97 with commit bcc43b2f7410eddb21f73e9a650499a6432c9383 Issue introduced in 2.6.27 with commit 2ece5f43b041b96fa2a05107a10a6b0ea0c03a3b and fixed in 6.18.40 with commit d81860691e4cfa14d596136ea2727f244e9e5950 Issue introduced in 2.6.27 with commit 2ece5f43b041b96fa2a05107a10a6b0ea0c03a3b and fixed in 7.1.5 with commit dae8f6ddc35cb1673dba32d2fd8f1f85cd377adf Issue introduced in 2.6.27 with commit 2ece5f43b041b96fa2a05107a10a6b0ea0c03a3b and fixed in 7.2-rc1 with commit 6fcca16a2b19c37f60693c56cbc0c923364ff3ef
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-2026-72267
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/video/fbdev/carminefb.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/97b6c3f6e82a526d95dcfbfcf1c42ba44c61c3d6 https://git.kernel.org/stable/c/6069044e74b7510bf2f034ccd049bc962fb9c765 https://git.kernel.org/stable/c/b51990be8411335c263b51e9f4def1e84bfaa923 https://git.kernel.org/stable/c/d21e6747f3f68dcce59b5d2205f98633d28f69eb https://git.kernel.org/stable/c/bcc43b2f7410eddb21f73e9a650499a6432c9383 https://git.kernel.org/stable/c/d81860691e4cfa14d596136ea2727f244e9e5950 https://git.kernel.org/stable/c/dae8f6ddc35cb1673dba32d2fd8f1f85cd377adf https://git.kernel.org/stable/c/6fcca16a2b19c37f60693c56cbc0c923364ff3ef