netfilter: nft_exthdr: fix register tracking for F_PRESENT flag
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel 5.10.259, Kernel 5.15.210, Kernel 6.1.176 and 12 more.
In the Linux kernel, the following vulnerability has been resolved: netfilter: nft_exthdr: fix register tracking for F_PRESENT flag nft_exthdr_init() passes user-controlled priv->len to nft_parse_register_store(), which marks that many bytes in the register bitmap as initialized. However, when NFT_EXTHDR_F_PRESENT is set, the eval paths write only 1 byte (nft_reg_store8) or 4 bytes (*dest = 0 on TCP/DCCP error path). When len > 4, registers beyond the first are never written, retaining uninitialized stack data from nft_regs. Bail out if userspace requests too much data when F_PRESENT is set.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | >=4.11 <5.10.259, >=5.11 <5.15.210, >=5.16 <6.1.176, >=6.13 <6.18.36, >=6.19 <7.0.13, >=6.2 <6.6.143, >=6.7 <6.12.94, =7.1, >=c078ca3b0c5bf82c2b31906c446d6e2ad8ea0783 <46fc15a044e9938e7ea77786fb37edd2cd74f031, >=c078ca3b0c5bf82c2b31906c446d6e2ad8ea0783 <67b27434c43b68a97becda98c9f0c8cf6cba2134, >=c078ca3b0c5bf82c2b31906c446d6e2ad8ea0783 <772cecf198da732faebb5dcfc46d66a505be8495, >=c078ca3b0c5bf82c2b31906c446d6e2ad8ea0783 <78069a6d8bc86c9e036eb82c2af4a19cc1871a53, >=c078ca3b0c5bf82c2b31906c446d6e2ad8ea0783 <8738b1b6d0e639ca1fc0f61516afd3557ac4ecc6, >=c078ca3b0c5bf82c2b31906c446d6e2ad8ea0783 <cd513e43b4b2bd1de39e2367bc4261c699a8652f, >=c078ca3b0c5bf82c2b31906c446d6e2ad8ea0783 <f08fb3d42fd3aad0b7a263da3ac3ebaf0845e265, =4.11, >=c078ca3b0c5bf82c2b31906c446d6e2ad8ea0783 <19748967d59c31d24d21d40b728570788310b237 | 5.10.259, 5.15.210, 6.1.176, 6.18.36, 7.0.13, 6.6.143, 6.12.94, 46fc15a044e9938e7ea77786fb37edd2cd74f031, 67b27434c43b68a97becda98c9f0c8cf6cba2134, 772cecf198da732faebb5dcfc46d66a505be8495, 78069a6d8bc86c9e036eb82c2af4a19cc1871a53, 8738b1b6d0e639ca1fc0f61516afd3557ac4ecc6, cd513e43b4b2bd1de39e2367bc4261c699a8652f, f08fb3d42fd3aad0b7a263da3ac3ebaf0845e265, 19748967d59c31d24d21d40b728570788310b237 |
| linux-kernel: Kernel | >=4.11.0 <5.10.259, >=5.11.0 <5.15.210, >=5.16.0 <6.1.176, >=6.13.0 <6.18.36, >=6.19.0 <7.0.13, >=6.2.0 <6.6.143, >=6.7.0 <6.12.94 | 5.10.259, 5.15.210, 6.1.176, 6.18.36, 7.0.13, 6.6.143, 6.12.94 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket