{"id":"CVE-2026-139618","summary":"bpf: Fix uninit read for helper mem args on partially spilled slots","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nbpf: Fix uninit read for helper mem args on partially spilled slots\n\ncheck_stack_range_initialized() takes the spilled register path when\nbpf_is_spilled_reg(ss) holds, which, however, only looks at the last\nbyte of the slot. Hence, a partially spilled scalar (on the lower part)\nbypasses the check and the following loads:\n\n0: (b7) r1 = 1                        ; R1=1\n1: (63) *(u32 *)(r10 -8) = r1         ; R1=1 R10=fp0 fp-8=????1\n2: (18) r1 = 0x0                      ; R1=map_ptr(map=rb,ks=0,vs=0)\n4: (bf) r2 = r10                      ; R2=fp0 R10=fp0\n5: (07) r2 += -8                      ; R2=fp-8\n6: (b7) r3 = 8                        ; R3=8\n7: (b7) r4 = 0                        ; R4=0\n8: (85) call bpf_ringbuf_output#130\n...\n\nWhen executed, it dumps the uninit four bytes:\n\tRINGBUF: 01 00 00 00 ff ff ff ff\n\nThis is the same root cause as the non-fetch atomic case fixed in\ncommit 5a84b4424db8 (\"bpf: Fix uninit read for non-fetch atomics on\npartially spilled slots\").\n\nFix by only taking the spilled register path for the bytes marked\nSTACK_SPILL, so the rest of the slot goes through the usual checks.","modified":"2026-11-30T15:02:29.666360708Z","published":"2026-11-30T13:36:25.010Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/139xxx/CVE-2026-139618.json","cna_assigner":"Linux"},"references":[{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"},{"type":"WEB","url":"https://git.kernel.org/stable/c/169884f932924796d6947fc6adcabd5fc2d92575"},{"type":"WEB","url":"https://git.kernel.org/stable/c/b3861495d2b2f7459cddf49e63fa0758ba430583"},{"type":"WEB","url":"https://git.kernel.org/stable/c/e81530cbce0b751936d962cabe43a8436aaae109"},{"type":"WEB","url":"https://git.kernel.org/stable/c/f3bd942493c912fd84a5c3fe57b7ea31083988b6"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/139xxx/CVE-2026-139618.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-139618"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"354e8f1970f821d4952458f77b1ab6c3eb24d530"},{"fixed":"169884f932924796d6947fc6adcabd5fc2d92575"},{"fixed":"e81530cbce0b751936d962cabe43a8436aaae109"},{"fixed":"f3bd942493c912fd84a5c3fe57b7ea31083988b6"},{"fixed":"b3861495d2b2f7459cddf49e63fa0758ba430583"}]},{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"8de8c4a25ed8924b09cf8cd542feea854d5ee5bf"}]},{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"7b86f9ab56924ca56cde927d461165127b6b472e"}]}],"versions":["v5.10.275","v5.10.274","v5.10.273","v5.10.272","v5.10.271","v5.10.270","v5.10.269","v5.10.268","v5.10.267","v5.10.266","v5.10.265","v5.10.264","v5.10.263","v5.10.262","v5.10.261","v5.10.260","v5.10.259","v5.10.258","v5.10.257","v5.10.256","v5.10.255","v5.10.254","v5.10.253","v5.10.252","v5.10.251","v5.10.250","v5.10.249","v5.10.248","v5.10.247","v5.10.246","v5.10.245","v5.10.244","v5.10.243","v5.10.242","v5.10.241","v5.10.240","v5.10.239","v5.10.238","v5.10.237","v5.10.236","v5.10.235","v5.10.234","v5.10.233","v5.10.232","v5.10.231","v5.10.230","v5.10.229","v5.10.228","v5.10.227","v5.10.226","v5.10.225","v5.10.224","v5.10.223","v5.10.222","v5.10.221","v5.10.220","v5.10.219","v5.10.218","v5.10.217","v5.10.216","v5.10.215","v5.10.214","v5.10.213","v5.10.212","v5.10.211","v5.10.210","v5.10.209","v5.10.208","v5.10.207","v5.10.206","v5.10.205","v5.10.204","v5.10.203","v5.10.202","v5.10.201","v5.10.200","v5.10.199","v5.10.198","v5.10.197","v5.10.196","v5.10.195","v5.10.194","v5.10.193","v5.10.192","v5.10.191","v5.10.190","v5.10.189","v5.10.188","v5.10.187","v5.10.186","v5.10.185","v5.10.184","v5.10.183","v5.10.182","v5.10.181","v5.10.180","v5.10.179","v5.10.178","v5.10.177","v5.10.176","v5.10.175","v5.10.174","v5.10.173","v5.10.172","v5.10.171","v5.10.170","v5.10.169","v5.10.168","v5.15.226","v5.15.225","v5.15.224","v5.15.223","v5.15.222","v5.15.221","v5.15.220","v5.15.219","v5.15.218","v5.15.217","v5.15.216","v5.15.215","v5.15.214","v5.15.213","v5.15.212","v5.15.211","v5.15.210","v5.15.209","v5.15.208","v5.15.207","v5.15.206","v5.15.205","v5.15.204","v5.15.203","v5.15.202","v5.15.201","v5.15.200","v5.15.199","v5.15.198","v5.15.197","v5.15.196","v5.15.195","v5.15.194","v5.15.193","v5.15.192","v5.15.191","v5.15.190","v5.15.189","v5.15.188","v5.15.187","v5.15.186","v5.15.185","v5.15.184","v5.15.183","v5.15.182","v5.15.181","v5.15.180","v5.15.179","v5.15.178","v5.15.177","v5.15.176","v5.15.175","v5.15.174","v5.15.173","v5.15.172","v5.15.171","v5.15.170","v5.15.169","v5.15.168","v5.15.167","v5.15.166","v5.15.165","v5.15.164","v5.15.163","v5.15.162","v5.15.161","v5.15.160","v5.15.159","v5.15.158","v5.15.157","v5.15.156","v5.15.155","v5.15.154","v5.15.153","v5.15.152","v5.15.151","v5.15.150","v5.15.149","v5.15.148","v5.15.147","v5.15.146","v5.15.145","v5.15.144","v5.15.143","v5.15.142","v5.15.141","v5.15.140","v5.15.139","v5.15.138","v5.15.137","v5.15.136","v5.15.135","v5.15.134","v5.15.133","v5.15.132","v5.15.131","v5.15.130","v5.15.129","v5.15.128","v5.15.127","v5.15.126","v5.15.125","v5.15.124","v5.15.123","v5.15.122","v5.15.121","v5.15.120","v5.15.119","v5.15.118","v5.15.117","v5.15.116","v5.15.115","v5.15.114","v5.15.113","v5.15.112","v5.15.111","v5.15.110","v5.15.109","v5.15.108","v5.15.107","v5.15.106","v5.15.105","v5.15.104","v5.15.103","v5.15.102","v5.15.101","v5.15.100","v5.15.99","v5.15.98","v5.15.97","v5.15.96","v5.15.95","v5.15.94","v5.15.93"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-139618.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"5.10.168"},{"fixed":"5.11"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.15.93"},{"fixed":"5.16"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.16.0"},{"fixed":"6.12.120"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.13.0"},{"fixed":"6.18.66"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.19.0"},{"fixed":"7.3.6"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-139618.json"}}],"schema_version":"1.9.2"}