diff options
author | 2023-04-27 11:08:41 +0800 | |
---|---|---|
committer | 2023-05-11 22:58:59 +0200 | |
commit | c75f5a55061091030a13fef71b9995b89bc86213 (patch) | |
tree | 7a8abedd4254f120f6d2b1178d8c96e01bb6f3e4 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | fbdev: vfb: Remove trailing whitespaces (diff) | |
download | wireguard-linux-c75f5a55061091030a13fef71b9995b89bc86213.tar.xz wireguard-linux-c75f5a55061091030a13fef71b9995b89bc86213.zip |
fbdev: imsttfb: Fix use after free bug in imsttfb_probe
A use-after-free bug may occur if init_imstt invokes framebuffer_release
and free the info ptr. The caller, imsttfb_probe didn't notice that and
still keep the ptr as private data in pdev.
If we remove the driver which will call imsttfb_remove to make cleanup,
UAF happens.
Fix it by return error code if bad case happens in init_imstt.
Signed-off-by: Zheng Wang <zyytlz.wz@163.com>
Signed-off-by: Helge Deller <deller@gmx.de>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions