{"id":"CVE-2025-39887","published":"2025-09-23T06:00:53Z","modified":"2026-05-11T21:38:20Z","title":"tracing/osnoise: Fix null-ptr-deref in bitmap_parselist()","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"In the Linux kernel, the following vulnerability has been resolved:\n\ntracing/osnoise: Fix null-ptr-deref in bitmap_parselist()\n\nA crash was observed with the following output:\n\nBUG: kernel NULL pointer dereference, address: 0000000000000010\nOops: Oops: 0000 [#1] SMP NOPTI\nCPU: 2 UID: 0 PID: 92 Comm: osnoise_cpus Not tainted 6.17.0-rc4-00201-gd69eb204c255 #138 PREEMPT(voluntary)\nRIP: 0010:bitmap_parselist+0x53/0x3e0\nCall Trace:\n <TASK>\n osnoise_cpus_write+0x7a/0x190\n vfs_write+0xf8/0x410\n ? do_sys_openat2+0x88/0xd0\n ksys_write+0x60/0xd0\n do_syscall_64+0xa4/0x260\n entry_SYSCALL_64_after_hwframe+0x77/0x7f\n </TASK>\n\nThis issue can be reproduced by below code:\n\nfd=open(\"/sys/kernel/debug/tracing/osnoise/cpus\", O_WRONLY);\nwrite(fd, \"0-2\", 0);\n\nWhen user pass 'count=0' to osnoise_cpus_write(), kmalloc() will return\nZERO_SIZE_PTR (16) and cpulist_parse() treat it as a normal value, which\ntrigger the null pointer dereference. Add check for the parameter 'count'.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.5,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","provenance":"source","from":"CISA ADP Vulnrichment"},"epss":{"score":0.00194,"percentile":0.05248,"provenance":"source"},"cwes":[{"id":"CWE-476","name":"NULL Pointer Dereference"}],"references":[{"url":"https://git.kernel.org/stable/c/e33228a2cc7ff706ca88533464e8a3b525b961ed","tags":[]},{"url":"https://git.kernel.org/stable/c/c1628c00c4351dd0727ef7f670694f68d9e663d8","tags":[]}],"priority":{"score":4.9,"factors":[{"name":"EPSS percentile","points":1.05},{"name":"CVSS severity","points":3.85}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= 17f89102fe23d7389085a8820550df688f79888a, < e33228a2cc7ff706ca88533464e8a3b525b961ed",">= 17f89102fe23d7389085a8820550df688f79888a, < c1628c00c4351dd0727ef7f670694f68d9e663d8"]},{"vendor":"Linux","product":"Linux","versions":["6.16"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-01-14T19:26:38.570259Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2025-30847","exploited":false,"provenance":"source"}}