{"id":"CVE-2023-53587","summary":"ring-buffer: Sync IRQ works before buffer destruction","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nring-buffer: Sync IRQ works before buffer destruction\n\nIf something was written to the buffer just before destruction,\nit may be possible (maybe not in a real system, but it did\nhappen in ARCH=um with time-travel) to destroy the ringbuffer\nbefore the IRQ work ran, leading this KASAN report (or a crash\nwithout KASAN):\n\n    BUG: KASAN: slab-use-after-free in irq_work_run_list+0x11a/0x13a\n    Read of size 8 at addr 000000006d640a48 by task swapper/0\n\n    CPU: 0 PID: 0 Comm: swapper Tainted: G        W  O       6.3.0-rc1 #7\n    Stack:\n     60c4f20f 0c203d48 41b58ab3 60f224fc\n     600477fa 60f35687 60c4f20f 601273dd\n     00000008 6101eb00 6101eab0 615be548\n    Call Trace:\n     [\u003c60047a58\u003e] show_stack+0x25e/0x282\n     [\u003c60c609e0\u003e] dump_stack_lvl+0x96/0xfd\n     [\u003c60c50d4c\u003e] print_report+0x1a7/0x5a8\n     [\u003c603078d3\u003e] kasan_report+0xc1/0xe9\n     [\u003c60308950\u003e] __asan_report_load8_noabort+0x1b/0x1d\n     [\u003c60232844\u003e] irq_work_run_list+0x11a/0x13a\n     [\u003c602328b4\u003e] irq_work_tick+0x24/0x34\n     [\u003c6017f9dc\u003e] update_process_times+0x162/0x196\n     [\u003c6019f335\u003e] tick_sched_handle+0x1a4/0x1c3\n     [\u003c6019fd9e\u003e] tick_sched_timer+0x79/0x10c\n     [\u003c601812b9\u003e] __hrtimer_run_queues.constprop.0+0x425/0x695\n     [\u003c60182913\u003e] hrtimer_interrupt+0x16c/0x2c4\n     [\u003c600486a3\u003e] um_timer+0x164/0x183\n     [...]\n\n    Allocated by task 411:\n     save_stack_trace+0x99/0xb5\n     stack_trace_save+0x81/0x9b\n     kasan_save_stack+0x2d/0x54\n     kasan_set_track+0x34/0x3e\n     kasan_save_alloc_info+0x25/0x28\n     ____kasan_kmalloc+0x8b/0x97\n     __kasan_kmalloc+0x10/0x12\n     __kmalloc+0xb2/0xe8\n     load_elf_phdrs+0xee/0x182\n     [...]\n\n    The buggy address belongs to the object at 000000006d640800\n     which belongs to the cache kmalloc-1k of size 1024\n    The buggy address is located 584 bytes inside of\n     freed 1024-byte region [000000006d640800, 000000006d640c00)\n\nAdd the appropriate irq_work_sync() so the work finishes before\nthe buffers are destroyed.\n\nPrior to the commit in the Fixes tag below, there was only a\nsingle global IRQ work, so this issue didn't exist.","modified":"2026-04-02T09:44:33.167646Z","published":"2025-10-04T15:44:02.679Z","related":["SUSE-SU-2025:4111-1","SUSE-SU-2025:4139-1","SUSE-SU-2025:4149-1","SUSE-SU-2025:4189-1","SUSE-SU-2025:4320-1"],"database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/53xxx/CVE-2023-53587.json"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/0a65165bd24ee9231191597b7c232376fcd70cdb"},{"type":"WEB","url":"https://git.kernel.org/stable/c/1c99f65d6af2a454bfd5207b4f6a97c8474a1191"},{"type":"WEB","url":"https://git.kernel.org/stable/c/2399b1fda025e939b6fb1ac94505bcf718534e65"},{"type":"WEB","url":"https://git.kernel.org/stable/c/2702b67f59d455072a08dc40312f9b090d4dec04"},{"type":"WEB","url":"https://git.kernel.org/stable/c/372c5ee537b8366b64b691ba29e9335525e1655e"},{"type":"WEB","url":"https://git.kernel.org/stable/c/675751bb20634f981498c7d66161584080cc061e"},{"type":"WEB","url":"https://git.kernel.org/stable/c/c63741e872fcfb10e153517750f7908f0c00f60d"},{"type":"WEB","url":"https://git.kernel.org/stable/c/d9834abd8b24d1fe8092859e436fe1e0fd467c61"},{"type":"WEB","url":"https://git.kernel.org/stable/c/fc6858b7f8e1221f62ce8c6ff8a13a349c32cd76"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/53xxx/CVE-2023-53587.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-53587"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"15693458c4bc0693fd63a50d60f35b628fcf4e29"},{"fixed":"372c5ee537b8366b64b691ba29e9335525e1655e"},{"fixed":"2702b67f59d455072a08dc40312f9b090d4dec04"},{"fixed":"2399b1fda025e939b6fb1ac94505bcf718534e65"},{"fixed":"1c99f65d6af2a454bfd5207b4f6a97c8474a1191"},{"fixed":"c63741e872fcfb10e153517750f7908f0c00f60d"},{"fixed":"d9834abd8b24d1fe8092859e436fe1e0fd467c61"},{"fixed":"fc6858b7f8e1221f62ce8c6ff8a13a349c32cd76"},{"fixed":"0a65165bd24ee9231191597b7c232376fcd70cdb"},{"fixed":"675751bb20634f981498c7d66161584080cc061e"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-53587.json"}}],"schema_version":"1.7.5"}