CVE
CVE-2023-53560
CNA 原文 · 原文(英文)
In the Linux kernel, the following vulnerability has been resolved: tracing/histograms: Add histograms to hist_vars if they have referenced variables Hist triggers can have referenced variables without having direct variables fields. This can be the case if referenced variables are added for trigger actions. In this case the newly added references will not have field variables. Not taking such referenced variables into consideration can result in a bug where it would be possible to remove hist trigger with variables being refenced. This will result in a bug that is easily reproducable like so $ cd /sys/kernel/tracing $ echo 'synthetic_sys_enter char[] comm; long id' >> synthetic_events $ echo 'hist:keys=common_pid.execname,id.syscall:vals=hitcount:comm=common_pid.execname' >> events/raw_syscalls/sys_enter/trigger $ echo 'hist:keys=common_pid.execname,id.syscall:onmatch(raw_syscalls.sys_enter).synthetic_sys_enter($comm, id)' >> events/raw_syscalls/sys_enter/trigger $ echo '!hist:keys=common_pid.execname,id.syscall:vals=hitcount:comm=common_pid.execname' >> events/raw_syscalls/sys_enter/trigger [ 100.263533] ================================================================== [ 100.264634] BUG: KASAN: slab-use-after-free in resolve_var_refs+0xc7/0x180 [ 100.265520] Read of size 8 at addr ffff88810375d0f0 by task bash/439 [ 100.266320] [ 100.266533] CPU: 2 PID: 439 Comm: bash Not tainted 6.5.0-rc1 #4 [ 100.267277] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.16.0-20220807_005459-localhost 04/01/2014 [ 100.268561] Call Trace: [ 100.268902] <TASK> [ 100.269189] dump_stack_lvl+0x4c/0x70 [ 100.269680] print_report+0xc5/0x600 [ 100.270165] ? resolve_var_refs+0xc7/0x180 [ 100.270697] ? kasan_complete_mode_report_info+0x80/0x1f0 [ 100.271389] ? resolve_var_refs+0xc7/0x180 [ 100.271913] kasan_report+0xbd/0x100 [ 100.272380] ? resolve_var_refs+0xc7/0x180 [ 100.272920] __asan_load8+0x71/0xa0 [ 100.273377]…
受影响版本
- 6.5-rc1仅此版本
- ≥ 6.2, < 6.4.5修复版本 6.4.5
- ≥ 5.16, < 6.1.40修复版本 6.1.40
- ≥ 5.11, < 5.15.121修复版本 5.15.121
- ≥ 5.5, < 5.10.188修复版本 5.10.188
- ≥ 4.20, < 5.4.251修复版本 5.4.251
- ≥ 4.17, < 4.19.291修复版本 4.19.291
发行版软件包(Debian、Ubuntu、Red Hat 等)会回移补丁而不改上游版本号,请同时查看所用发行版的安全公告。
公告与补丁
- git.kernel.org/stable/c/1576f0df7b4d1f82db588d6654b89d796fa06929 · Patch
- git.kernel.org/stable/c/4815359056083c555f97a5ee3af86519be5166de · Patch
- git.kernel.org/stable/c/4a540f63618e525e433b37d2b5522cda08e321d7 · Patch
- git.kernel.org/stable/c/4ffad1528e81c91769d9da1f8436080861c8ec67 · Patch
- git.kernel.org/stable/c/5fd32eb6fa0ac795aa5a64bc004ab68d7b44196a · Patch
- git.kernel.org/stable/c/6018b585e8c6fa7d85d4b38d9ce49a5b67be7078 · Patch
- git.kernel.org/stable/c/97f54b330c797ed27fba8791baeaa38ace886cbd · Patch
数据来源:NVD(公有领域)、CISA KEV(CC0)、FIRST EPSS、OSV.dev / GitHub Advisory Database(CC-BY 4.0) · 本库只列受影响版本与修复版本,不托管、不链接任何利用代码。