Shellfeed logo Shellfeed

CVE-2026-74320 · UNKNOWN

Summary: fbdev: sm501fb: Fix buffer errors in OF binding code

Details

In the Linux kernel, the following vulnerability has been resolved:

fbdev: sm501fb: Fix buffer errors in OF binding code

The code that gets the frame buffer mode from OF has 'use after free',
'buffer overrun' and memory leaks.

info->edid_data isn't free if the probe functions fail or if
pd->def_mode is set.

If both the CRT and PANEL are enabled info->edid_data is used after
being freed and is freed twice.

The string returned by of_get_property(np, "mode", &len) is just
written over either the static "640x480-16@60" or the module parameter
string without any regard for the length (which is most likely longer).

Use kstrump() for the OF mode and free everything before freeing 'info.

Affected packages

  • GIT git.kernel.org/pub/scm/linux/kernel/git/stable/linux [4295f9bf74a885da390abc49a3b42a011c1bb890 – 0bc3d909a49e1fd8b8c3f2160d526e672c40621d]
  • Linux Kernel [2.6.39 – 5.10.261] [5.11.0 – 5.15.212] [5.16.0 – 6.1.178] [6.2.0 – 6.6.145] [6.7.0 – 6.12.97] [6.13.0 – 6.18.40] [6.19.0 – 7.1.5]

References