{"id":"CVE-2026-23255","published":"2026-03-18T17:41:01Z","modified":"2026-11-10T12:42:05Z","title":"net: add proper RCU protection to /proc/net/ptype","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet: add proper RCU protection to /proc/net/ptype\n\nYin Fengwei reported an RCU stall in ptype_seq_show() and provided\na patch.\n\nReal issue is that ptype_seq_next() and ptype_seq_show() violate\nRCU rules.\n\nptype_seq_show() runs under rcu_read_lock(), and reads pt->dev\nto get device name without any barrier.\n\nAt the same time, concurrent writers can remove a packet_type structure\n(which is correctly freed after an RCU grace period) and clear pt->dev\nwithout an RCU grace period.\n\nDefine ptype_iter_state to carry a dev pointer along seq_net_private:\n\nstruct ptype_iter_state {\n\tstruct seq_net_private\tp;\n\tstruct net_device\t*dev; // added in this patch\n};\n\nWe need to record the device pointer in ptype_get_idx() and\nptype_seq_next() so that ptype_seq_show() is safe against\nconcurrent pt->dev changes.\n\nWe also need to add full RCU protection in ptype_seq_next().\n(Missing READ_ONCE() when reading list.next values)\n\nMany thanks to Dong Chenchen for providing a repro.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.00134,"percentile":0.02958,"provenance":"source"},"cwes":[],"references":[{"url":"https://git.kernel.org/stable/c/e974a10a52618f7f57a4bce173a0ed96acd4e5dc","tags":[]},{"url":"https://git.kernel.org/stable/c/002a73470b56848e4c81efeaaedd471e92d66d8d","tags":[]},{"url":"https://git.kernel.org/stable/c/dcefd3f0b9ed8288654c75254bdcee8e1085e861","tags":[]},{"url":"https://git.kernel.org/stable/c/589a530ae44d0c80f523fcfd1a15af8087f27d35","tags":[]},{"url":"https://git.kernel.org/stable/c/f613e8b4afea0cd17c7168e8b00e25bc8d33175d","tags":[]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-019113.html","tags":[]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-457936.html","tags":[]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-784472.html","tags":[]}],"priority":{"score":0.6,"factors":[{"name":"EPSS percentile","points":0.59}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < e974a10a52618f7f57a4bce173a0ed96acd4e5dc",">= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 002a73470b56848e4c81efeaaedd471e92d66d8d",">= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < dcefd3f0b9ed8288654c75254bdcee8e1085e861",">= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 589a530ae44d0c80f523fcfd1a15af8087f27d35",">= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < f613e8b4afea0cd17c7168e8b00e25bc8d33175d"]},{"vendor":"Linux","product":"Linux","versions":["2.6.12"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-11-05T21:23:42.965532Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2026-12886","exploited":false,"provenance":"source"}}