A new vulnerability on IPv6 parsing in linux
The Linux kernel driver for Mellanox mlxsw hardware failed to update its internal hash table when the remote IPv6 address of an ip6gre tunnel device was changed, leaking the old address and never registering the new one. An attacker with local privileges could trigger a warning and a memory leak by changing the address and then deleting the device or reloading the driver.
nvd.nist.gov
Published on nvd.nist.gov
The device stores IPv6 addresses that are used for encapsulation in linear memory that is managed by the driver.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the driver did not handle the netdevice change event for ip6gre tunnels, so it never removed the old remote IPv6 address from its hash table or added the new one.
Impact
The flaw could cause a kernel warning and a memory leak, leading to a partial denial of service; it requires local access and specific Mellanox hardware.
What the attacker needed
Local access to the system; Mellanox mlxsw network hardware; ability to create and modify ip6gre tunnels
The fix
The driver was fixed to program the new remote address and remove the old one when the ip6gre net device configuration changes.
How it was found
- Create an ip6gre tunnel device with a local and remote IPv6 address.
- Change the remote IPv6 address of the tunnel device.
- Delete the tunnel device.
- Reload the driver, which triggers a warning and shows the leaked memory.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
A memory leak happens when a program forgets to free memory it no longer needs, so the memory is wasted. Here, the kernel driver for a network card kept an old IPv6 address in its records and never added the new one, so the old record was never cleaned up. Someone who can already run commands on the machine could trigger this and cause a warning and a small leak.
What is DoS?
A request that exhausts resources or crashes a component. Many programs forbid testing it; reports usually show it from code, not by attacking.