ipv6: reject wrapped temporary address preferred lifetimes
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel c3e67bd82b9b9b1a5118f09a429ccefe2aab0741, Kernel 11c7029932fb578b12b379a5559702b0cec8feda, Kernel 56758052466e6617fa4ac8e68d3c109cca56efb3 and 4 more.
In the Linux kernel, the following vulnerability has been resolved: ipv6: reject wrapped temporary address preferred lifetimes ipv6_create_tempaddr() raises a temporary address's preferred lifetime to regen_advance + age + 1 when the configured lifetime is too short. The result is stored in a u32, while regen_advance and age are unsigned long. If the sum wraps or is truncated, the stored lifetime can still be less than or equal to regen_advance + age. addrconf_verify_rtnl() then sees the new address as due for regeneration and creates another one. Temporary addresses are not limited by max_addresses since commit 4b08a8f1bd8c ("ipv6: remove max_addresses check from ipv6_create_tempaddr"), so this can cause unbounded address growth. With dad_transmits set to -1, a baseline kernel reached 2859 loopback addresses in two seconds. After storing the adjusted lifetime, verify that it is still greater than regen_advance + age. Reject the new address if the check fails. On an x86-64 KASAN kernel, the normal configuration created three IPv6 addresses. The negative dad_transmits, positive multiplication overflow, and large retransmission-time cases each left only the loopback and public addresses. An i386 defconfig and an x86-64 allmodconfig both built addrconf.o with W=1.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | >=f4bcbf360ac8dc424dc4d2b384b528e69b6f34d9 <c3e67bd82b9b9b1a5118f09a429ccefe2aab0741, >=f4bcbf360ac8dc424dc4d2b384b528e69b6f34d9 <11c7029932fb578b12b379a5559702b0cec8feda, >=f4bcbf360ac8dc424dc4d2b384b528e69b6f34d9 <56758052466e6617fa4ac8e68d3c109cca56efb3, >=f4bcbf360ac8dc424dc4d2b384b528e69b6f34d9 <6bbce146f893ab8b335e9eb82f4293bc94f3a4bf, =6.9 | c3e67bd82b9b9b1a5118f09a429ccefe2aab0741, 11c7029932fb578b12b379a5559702b0cec8feda, 56758052466e6617fa4ac8e68d3c109cca56efb3, 6bbce146f893ab8b335e9eb82f4293bc94f3a4bf |
| linux-kernel: Kernel | >=6.19.0 <7.3.5, >=6.9.0 <6.12.118, >=6.13.0 <6.18.64 | 7.3.5, 6.12.118, 6.18.64 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket