{"id":"CVE-2026-139180","state":"PUBLISHED","title":"pppoe: wait for RCU readers before reusing a socket","description":"In the Linux kernel, the following vulnerability has been resolved:\n\npppoe: wait for RCU readers before reusing a socket\n\nWhen pppoe_connect() disconnects or reuses a socket, it removes the old\nsession from the hash table and resets the socket's fields. An RCU\nreader that reached the entry before it was unlinked can still be using\nits address, ifindex or next pointer.\n\nIf sockets A and B share a hash bucket with A preceding B, a concurrent\n__get_item() looking for B can be traversing A when it is removed.\nClearing A->next then makes the lookup miss B and drop the packet.\nReinserting A can similarly redirect the reader into another hash chain.\n\nCall synchronize_net() after unlinking the old session and before\nclearing its fields. This allows existing receive-path and\n/proc/net/pppoe readers to finish before the socket is cleared or reused.\n\nThis was found by Sashiko's static analysis, and reproduced on a VM\nstress test with KCSAN.\n\n BUG: KCSAN: data-race in hash_item+0x1c/0x60\n\n race at unknown origin, with read to 0xffff888000a1c566 of 2 bytes by task 147 on cpu 2:\n  hash_item+0x1c/0x60\n  pppoe_seq_next+0x112/0x1b0\n  seq_read_iter+0x595/0x700\n  seq_read+0xb0/0xe0\n  proc_reg_read+0xd0/0xf0\n  vfs_read+0xbd/0x220\n  ksys_read+0xa9/0x100\n  __x64_sys_read+0x47/0x60\n  x64_sys_call+0x98/0x1fd0\n  do_syscall_64+0x5b/0x260\n  entry_SYSCALL_64_after_hwframe+0x4b/0x53\n\n value changed: 0x0002 -> 0x0000","publishedAt":"2026-11-30T13:32:19.225Z","updatedAt":"2026-11-30T13:32:19.225Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"72cdc67e7fa74931b055df3a76852bab551f1a04","status":"affected","lessThan":"d965589317516d8a2fe2cb1f8c21df8a98f4f206","versionType":"git"},{"version":"72cdc67e7fa74931b055df3a76852bab551f1a04","status":"affected","lessThan":"65cb39815f8ab6e65f86c58f4e1d58da017c716a","versionType":"git"},{"version":"72cdc67e7fa74931b055df3a76852bab551f1a04","status":"affected","lessThan":"e7b01bc0202a57f1b7dcdf19b2ffab6b781d47f8","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/ppp/pppoe.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.18","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.18","versionType":"semver"},{"version":"6.18.65","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.6","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc1","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/ppp/pppoe.c"]}],"references":["https://git.kernel.org/stable/c/d965589317516d8a2fe2cb1f8c21df8a98f4f206","https://git.kernel.org/stable/c/65cb39815f8ab6e65f86c58f4e1d58da017c716a","https://git.kernel.org/stable/c/e7b01bc0202a57f1b7dcdf19b2ffab6b781d47f8"],"weaknesses":[],"ingestedAt":"2026-11-30T13:44:05.999Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/139xxx/CVE-2026-139180.json","commit":"8c2c22940a0de21d18737df980299c0488d5dc73","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-139180","state":"PUBLISHED","datePublished":"2026-11-30T13:32:19.225Z","dateUpdated":"2026-11-30T13:32:19.225Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-11-30T13:22:15.918Z"},"containers":{"cna":{"title":"pppoe: wait for RCU readers before reusing a socket","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\npppoe: wait for RCU readers before reusing a socket\n\nWhen pppoe_connect() disconnects or reuses a socket, it removes the old\nsession from the hash table and resets the socket's fields. An RCU\nreader that reached the entry before it was unlinked can still be using\nits address, ifindex or next pointer.\n\nIf sockets A and B share a hash bucket with A preceding B, a concurrent\n__get_item() looking for B can be traversing A when it is removed.\nClearing A->next then makes the lookup miss B and drop the packet.\nReinserting A can similarly redirect the reader into another hash chain.\n\nCall synchronize_net() after unlinking the old session and before\nclearing its fields. This allows existing receive-path and\n/proc/net/pppoe readers to finish before the socket is cleared or reused.\n\nThis was found by Sashiko's static analysis, and reproduced on a VM\nstress test with KCSAN.\n\n BUG: KCSAN: data-race in hash_item+0x1c/0x60\n\n race at unknown origin, with read to 0xffff888000a1c566 of 2 bytes by task 147 on cpu 2:\n  hash_item+0x1c/0x60\n  pppoe_seq_next+0x112/0x1b0\n  seq_read_iter+0x595/0x700\n  seq_read+0xb0/0xe0\n  proc_reg_read+0xd0/0xf0\n  vfs_read+0xbd/0x220\n  ksys_read+0xa9/0x100\n  __x64_sys_read+0x47/0x60\n  x64_sys_call+0x98/0x1fd0\n  do_syscall_64+0x5b/0x260\n  entry_SYSCALL_64_after_hwframe+0x4b/0x53\n\n value changed: 0x0002 -> 0x0000"}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"72cdc67e7fa74931b055df3a76852bab551f1a04","status":"affected","lessThan":"d965589317516d8a2fe2cb1f8c21df8a98f4f206","versionType":"git"},{"version":"72cdc67e7fa74931b055df3a76852bab551f1a04","status":"affected","lessThan":"65cb39815f8ab6e65f86c58f4e1d58da017c716a","versionType":"git"},{"version":"72cdc67e7fa74931b055df3a76852bab551f1a04","status":"affected","lessThan":"e7b01bc0202a57f1b7dcdf19b2ffab6b781d47f8","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/ppp/pppoe.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.18","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.18","versionType":"semver"},{"version":"6.18.65","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.6","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc1","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/ppp/pppoe.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/d965589317516d8a2fe2cb1f8c21df8a98f4f206"},{"url":"https://git.kernel.org/stable/c/65cb39815f8ab6e65f86c58f4e1d58da017c716a"},{"url":"https://git.kernel.org/stable/c/e7b01bc0202a57f1b7dcdf19b2ffab6b781d47f8"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-11-30T13:32:19.225Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.18","versionEndExcluding":"6.18.65"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.18","versionEndExcluding":"7.3.6"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.18","versionEndExcluding":"7.4-rc1"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}