{"id":29177,"date":"2026-09-25T20:32:03","date_gmt":"2026-09-25T12:32:03","guid":{"rendered":"https:\/\/www.54iter.cn\/?vuln=cve-2026-98022"},"modified":"2026-09-25T20:32:03","modified_gmt":"2026-09-25T12:32:03","slug":"cve-2026-98022","status":"publish","type":"vuln","link":"https:\/\/www.54iter.cn\/?vuln=cve-2026-98022","title":{"rendered":"CVE-2026-98022 &#8211; In the Linux kernel, the following vulnerability has been resolved:\n\nnet: cap tx_queue_len"},"content":{"rendered":"<p>In the Linux kernel, the following vulnerability has been resolved:<\/p>\n<p>net: cap tx_queue_len at S16_MAX to prevent oversized ring allocations<\/p>\n<p>Several subsystems allocate ring buffers sized by dev-&gt;tx_queue_len<br \/>\nwith no upper bound. An unprivileged user (via unshare -Urn) can set a<br \/>\nhuge tx_queue_len and exhaust global memory with ring allocations:<\/p>\n<p>&#8211; pfifo_fast: pfifo_fast_init() and pfifo_fast_change_tx_queue_len()<br \/>\n  allocate 3 skb_array rings of tx_queue_len entries each.<br \/>\n&#8211; tun: tun_queue_resize() and the queue-attach path resize ptr_rings<br \/>\n  to tx_queue_len on the NETDEV_CHANGE_TX_QUEUE_LEN notifier.<br \/>\n&#8211; tap (macvtap\/ipvtap): tap_queue_resize() and tap_init() resize\/init<br \/>\n  ptr_rings to tx_queue_len on the same notifier.<\/p>\n<p>netif_change_tx_queue_len() is the single entry point for IFLA_TXQLEN,<br \/>\nsysfs, and the SIOCSIFTXQLEN ioctl. Cap new_len at S16_MAX (32767)<br \/>\nthere so the oversized value is rejected at set time. This takes<br \/>\neffect whether the device is up or down, before dev-&gt;tx_queue_len is<br \/>\nwritten, before any notifier fires, and before any ring is allocated.<br \/>\nThe &#8220;&gt; S16_MAX&#8221; check also subsumes the previous unsigned-long<br \/>\ntruncation test, and a negative ifr_qlen from the ioctl lands far<br \/>\nabove the cap after conversion, so both old failure modes are covered<br \/>\nby the one comparison.<\/p>\n<p>tx_queue_len is ambigious: both a per-ring sizing multiplier and a<br \/>\ndefault queue-length\/limit knob for consumers that allocate<br \/>\nnothing at set time (pfifo\/bfifo\/gred\/plug\/sfb limits, htb<br \/>\ndirect_qlen, qfq max_classes, teql). 32767 is chosen as the largest<br \/>\nvalue NLA_POLICY_FULL_RANGE can express for the u32 IFLA_TXQLEN<br \/>\npolicy in patch 2\/3 while staying a legitimate queue length on<br \/>\nhigh-BDP paths; the ring-memory trade-off of a shared knob is<br \/>\ndisclosed below.<\/p>\n<p>Conditions to recreate the bug:<br \/>\n&#8211; CONFIG_NET_SCHED=y, CONFIG_VETH=y, CONFIG_USER_NS=y, CONFIG_NET_NS=y.<br \/>\n&#8211; Unprivileged user in a fresh user+net namespace (unshare -Urn).<br \/>\n&#8211; pfifo_fast: create veth pairs, set tx_queue_len to 500000, attach<br \/>\n  mq+pfifo_fast. ~28 iterations OOMs a 2GB guest.<br \/>\n&#8211; tun: create 50 tun devices with IFF_MULTI_QUEUE, set tx_queue_len to<br \/>\n  500000, open 8 queues each. ~1.6GB of ptr_ring allocations OOMs a<br \/>\n  512MB guest.<br \/>\n&#8211; tap: same as tun with IFF_TAP. ~960MB OOMs a 512MB guest.<br \/>\n&#8211; On the fixed kernel the oversized tx_queue_len is rejected with<br \/>\n  -ERANGE at set time (all four paths: RTM_SETLINK, RTM_NEWLINK<br \/>\n  create, sysfs, ioctl &#8211; the latter two via this check, the former<br \/>\n  two via this check and the 2\/3 parse policy respectively).<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In the Linux kernel, the following vulnerability has been resolved:<\/p>\n<p>net: cap tx_queue_len at S16_MAX to prevent oversized ring allocations<\/p>\n<p>Several subsystems allocate ring buffers sized by dev-&gt;tx_q<\/p>\n","protected":false},"template":"","meta":[],"categories":[],"tags":[],"class_list":["post-29177","vuln","type-vuln","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.54iter.cn\/index.php?rest_route=\/wp\/v2\/vuln\/29177","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.54iter.cn\/index.php?rest_route=\/wp\/v2\/vuln"}],"about":[{"href":"https:\/\/www.54iter.cn\/index.php?rest_route=\/wp\/v2\/types\/vuln"}],"wp:attachment":[{"href":"https:\/\/www.54iter.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=29177"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.54iter.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=29177"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.54iter.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=29177"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}