{"id":"CVE-2025-39974","aliases":["CVE-2025-39974"],"related":[],"kind":"vulnerability","state":"published","title":"tracing/osnoise: Fix slab-out-of-bounds in _parse_integer_limit()","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\ntracing/osnoise: Fix slab-out-of-bounds in _parse_integer_limit()\n\nWhen config osnoise cpus by write() syscall, the following KASAN splat may\nbe observed:\n\nBUG: KASAN: slab-out-of-bounds in _parse_integer_limit+0x103/0x130\nRead of size 1 at addr ffff88810121e3a1 by task test/447\nCPU: 1 UID: 0 PID: 447 Comm: test Not tainted 6.17.0-rc6-dirty #288 PREEMPT(voluntary)\nHardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.15.0-1 04/01/2014\nCall Trace:\n <TASK>\n dump_stack_lvl+0x55/0x70\n print_report+0xcb/0x610\n kasan_report+0xb8/0xf0\n _parse_integer_limit+0x103/0x130\n bitmap_parselist+0x16d/0x6f0\n osnoise_cpus_write+0x116/0x2d0\n vfs_write+0x21e/0xcc0\n ksys_write+0xee/0x1c0\n do_syscall_64+0xa8/0x2a0\n entry_SYSCALL_64_after_hwframe+0x77/0x7f\n </TASK>\n\nThis issue can be reproduced by below code:\n\nconst char *cpulist = \"1\";\nint fd=open(\"/sys/kernel/debug/tracing/osnoise/cpus\", O_WRONLY);\nwrite(fd, cpulist, strlen(cpulist));\n\nFunction bitmap_parselist() was called to parse cpulist, it require that\nthe parameter 'buf' must be terminated with a '\\0' or '\\n'. Fix this issue\nby adding a '\\0' to 'buf' in osnoise_cpus_write().","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\ntracing/osnoise: Fix slab-out-of-bounds in _parse_integer_limit()\n\nWhen config osnoise cpus by write() syscall, the following KASAN splat may\nbe observed:\n\nBUG: KASAN: slab-out-of-bounds in _parse_integer_limit+0x103/0x130\nRead of size 1 at addr ffff88810121e3a1 by task test/447\nCPU: 1 UID: 0 PID: 447 Comm: test Not tainted 6.17.0-rc6-dirty #288 PREEMPT(voluntary)\nHardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.15.0-1 04/01/2014\nCall Trace:\n <TASK>\n dump_stack_lvl+0x55/0x70\n print_report+0xcb/0x610\n kasan_report+0xb8/0xf0\n _parse_integer_limit+0x103/0x130\n bitmap_parselist+0x16d/0x6f0\n osnoise_cpus_write+0x116/0x2d0\n vfs_write+0x21e/0xcc0\n ksys_write+0xee/0x1c0\n do_syscall_64+0xa8/0x2a0\n entry_SYSCALL_64_after_hwframe+0x77/0x7f\n </TASK>\n\nThis issue can be reproduced by below code:\n\nconst char *cpulist = \"1\";\nint fd=open(\"/sys/kernel/debug/tracing/osnoise/cpus\", O_WRONLY);\nwrite(fd, cpulist, strlen(cpulist));\n\nFunction bitmap_parselist() was called to parse cpulist, it require that\nthe parameter 'buf' must be terminated with a '\\0' or '\\n'. Fix this issue\nby adding a '\\0' to 'buf' in osnoise_cpus_write().","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\ntracing/osnoise: Corrección de slab-out-of-bounds en _parse_integer_limit()\n\nCuando se configuran las CPUs de osnoise mediante la llamada al sistema write(), el siguiente splat de KASAN puede observarse:\n\nERROR: KASAN: slab-out-of-bounds en _parse_integer_limit+0x103/0x130\nLectura de tamaño 1 en la dirección ffff88810121e3a1 por la tarea test/447\nCPU: 1 UID: 0 PID: 447 Comm: test Not tainted 6.17.0-rc6-dirty #288 PREEMPT(voluntary)\nNombre del hardware: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.15.0-1 04/01/2014\nTraza de llamadas:\n [TASK]\n dump_stack_lvl+0x55/0x70\n print_report+0xcb/0x610\n kasan_report+0xb8/0xf0\n _parse_integer_limit+0x103/0x130\n bitmap_parselist+0x16d/0x6f0\n osnoise_cpus_write+0x116/0x2d0\n vfs_write+0x21e/0xcc0\n ksys_write+0xee/0x1c0\n do_syscall_64+0xa8/0x2a0\n entry_SYSCALL_64_after_hwframe+0x77/0x7f\n [/TASK]\n\nEste problema puede reproducirse mediante el siguiente código:\n\nconst char *cpulist = “1”;\nint fd=open(“/sys/kernel/debug/tracing/osnoise/cpus”, O_WRONLY);\nwrite(fd, cpulist, strlen(cpulist));\n\nLa función bitmap_parselist() fue llamada para analizar cpulist, y requiere que el parámetro ’buf’ termine con un ’\\0’ o ’\n’. Este problema se soluciona añadiendo un ’\\0’ a ’buf’ en osnoise_cpus_write().","source":"nvd"}],"published":"2025-10-15T07:55:56.275Z","modified":"2026-10-19T22:10:00.130Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"17f89102fe23d7389085a8820550df688f79888a","fixed":"930cb05a9e107777316b3ccf37f9556366669065","status":"affected"},{"type":"git","introduced":"17f89102fe23d7389085a8820550df688f79888a","fixed":"a2501032de0d1bc7971b2e43c03da534ac10ee9b","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.16","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.16","status":"unaffected"},{"type":"semver","introduced":"6.16.10","lastAffected":"6.16.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.17","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/930cb05a9e107777316b3ccf37f9556366669065","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/a2501032de0d1bc7971b2e43c03da534ac10ee9b","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-39974","url":"https://www.cve.org/CVERecord?id=CVE-2025-39974","licence":"CVE Terms of Use","modified":"2026-05-11T21:40:01.814Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-39974","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-39974","licence":"Public domain","modified":"2026-10-19T22:10:00.130Z"}],"updatedAt":"2026-11-25T22:59:06.398Z","epss":{"score":0.00184,"percentile":0.08376,"date":"2026-12-01T12:00:22.000Z"}}