CVE-2024-50048 fbcon: Fix a NULL pointer dereference issue in fbcon_putcs
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: no · technical impact: partial
- Technology
- Linux KernelUbuntuDebian
Description
In the Linux kernel, the following vulnerability has been resolved:
fbcon: Fix a NULL pointer dereference issue in fbcon_putcs
syzbot has found a NULL pointer dereference bug in fbcon.
Here is the simplified C reproducer:
struct param {
uint8_t type;
struct tiocl_selection ts;
};
int main()
{
struct fb_con2fbmap con2fb;
struct param param;
int fd = open("/dev/fb1", 0, 0);
con2fb.console = 0x19;
con2fb.framebuffer = 0;
ioctl(fd, FBIOPUT_CON2FBMAP, &con2fb);
param.type = 2;
param.ts.xs = 0; param.ts.ys = 0;
param.ts.xe = 0; param.ts.ye = 0;
param.ts.sel_mode = 0;
int fd1 = open("/dev/tty1", O_RDWR, 0);
ioctl(fd1, TIOCLINUX, ¶m);
con2fb.console = 1;
con2fb.framebuffer = 0;
ioctl(fd, FBIOPUT_CON2FBMAP, &con2fb);
return 0;
}
After calling ioctl(fd1, TIOCLINUX, ¶m), the subsequent ioctl(fd, FBIOPUT_CON2FBMAP, &con2fb)
causes the kernel to follow a different execution path:
set_con2fb_map
-> con2fb_init_display
-> fbcon_set_disp
-> redraw_screen
-> hide_cursor
-> clear_selection
-> highlight
-> invert_screen
-> do_update_region
-> fbcon_putcs
-> ops->putcs
Since ops->putcs is a NULL pointer, this leads to a kernel panic.
To prevent this, we need to call set_blitting_type() within set_con2fb_map()
to properly initialize ops->putcs.
Upgrade path
7 packages: 7 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| debian/linux(Debian 12) | < 6.1.115-1; = 6.1.27-1; = 6.1.37-1; = 6.1.38-1 +27 more | 6.1.115-1 | Fixed |
| debian/linux(Debian 13) | < 6.11.4-1 | 6.11.4-1 | Fixed |
| debian/linux(Debian 14) | < 6.11.4-1 | 6.11.4-1 | Fixed |
| Linux kernel | < 6.1.113; < 6.6.57; < 6.11.4; < 6.12 +7 more | 5b97eebcce1b4f3f07a71f635d6aa3af96c236e7, 6.1.113, 6.6.57, 6.11.4, 6.12, 8266ae6eafdcd5a3136592445ff4038bbc7ee80e, e5c2dba62996a3a6eeb34bd248b90fc69c5a6a1b, f7fb5dda555344529ce584ff7a28b109528d2f1b | Fixed |
| Microsoft azure linux | < 6.6.57.1-1 | 6.6.57.1-1 | Fixed |
| ubuntu/linux(Ubuntu 24.04) | < 6.8.0-56.58 | 6.8.0-56.58 | Fixed |
| ubuntu/linux-raspi(Ubuntu 24.04) | < 6.8.0-1028.32 | 6.8.0-1028.32 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| Microsoft azure linux | < 6.6.57.1-1 | 6.6.57.1-1 |
| debian/linux(Debian:12) | < 6.1.115-1 | 6.1.115-1 |
| debian/linux(Debian:12) | = 6.1.106-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.106-2 | No fix listed |
| debian/linux(Debian:12) | = 6.1.106-3 | No fix listed |
| debian/linux(Debian:12) | = 6.1.112-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.27-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.37-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.38-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.38-2 | No fix listed |
| debian/linux(Debian:12) | = 6.1.38-2~bpo11+1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.38-3 | No fix listed |
| debian/linux(Debian:12) | = 6.1.38-4 | No fix listed |
| debian/linux(Debian:12) | = 6.1.38-4~bpo11+1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.52-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.55-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.55-1~bpo11+1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.64-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.66-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.67-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.69-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.69-1~bpo11+1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.76-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.76-1~bpo11+1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.82-1 | No fix listed |
Show 22 more
| Product | Affected versions | Fixed in |
|---|---|---|
| debian/linux(Debian:12) | = 6.1.85-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.90-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.90-1~bpo11+1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.94-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.94-1~bpo11+1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.98-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.99-1 | No fix listed |
| debian/linux(Debian:13) | < 6.11.4-1 | 6.11.4-1 |
| debian/linux(Debian:14) | < 6.11.4-1 | 6.11.4-1 |
| Linux kernel | >= b07db39584856e16814e2f065380e533a001535d, < 8266ae6eafdcd5a3136592445ff4038bbc7ee80e | 8266ae6eafdcd5a3136592445ff4038bbc7ee80e |
| Linux kernel | >= b07db39584856e16814e2f065380e533a001535d, < f7fb5dda555344529ce584ff7a28b109528d2f1b | f7fb5dda555344529ce584ff7a28b109528d2f1b |
| Linux kernel | >= b07db39584856e16814e2f065380e533a001535d, < e5c2dba62996a3a6eeb34bd248b90fc69c5a6a1b | e5c2dba62996a3a6eeb34bd248b90fc69c5a6a1b |
| Linux kernel | >= b07db39584856e16814e2f065380e533a001535d, < 5b97eebcce1b4f3f07a71f635d6aa3af96c236e7 | 5b97eebcce1b4f3f07a71f635d6aa3af96c236e7 |
| Linux kernel | = 5.19 | No fix listed |
| Linux kernel | < 6.1.113 | 6.1.113 |
| Linux kernel | < 6.6.57 | 6.6.57 |
| Linux kernel | < 6.11.4 | 6.11.4 |
| Linux kernel | < 6.12 | 6.12 |
| ubuntu/linux(Ubuntu:24.04) | < 6.8.0-56.58 | 6.8.0-56.58 |
| ubuntu/linux-raspi(Ubuntu:24.04) | < 6.8.0-1028.32 | 6.8.0-1028.32 |
| Linux kernel | >= 6.2, < 6.6.57 | 6.6.57 |
| Linux kernel | >= 6.7, < 6.11.4 | 6.11.4 |
References
- MSRC Security Update Guide vendor-advisory
- kernel vendor-advisory
- Debian Security Tracker CVE-2024-50048 vendor-advisory
- Ubuntu CVE tracker vendor-advisory
- USN-7276-1 vendor-advisory
- USN-7277-1 vendor-advisory
- USN-7310-1 vendor-advisory
- USN-7383-1 vendor-advisory
- USN-7384-1 vendor-advisory
- USN-7385-1 vendor-advisory
- USN-7386-1 vendor-advisory
- USN-7383-2 vendor-advisory
- USN-7384-2 vendor-advisory
- USN-7403-1 vendor-advisory
- USN-7451-1 vendor-advisory
- USN-7468-1 vendor-advisory
- USN-7523-1 vendor-advisory
- USN-7524-1 vendor-advisory
- www.cve.org
- git.kernel.org patch
- git.kernel.org patch
- git.kernel.org patch
- git.kernel.org patch
- lists.debian.org