CVE-2022-48910
published 2024-08-22CVE-2022-48910: In the Linux kernel, the following vulnerability has been resolved: net: ipv6: ensure we call ipv6_mc_down() at most once There are two reasons for…
PriorityP422medium5.5CVSS 3.1
AVLACLPRLUINSUCNINAH
EPSS
0.21%
11.4th percentile
In the Linux kernel, the following vulnerability has been resolved:
net: ipv6: ensure we call ipv6_mc_down() at most once
There are two reasons for addrconf_notify() to be called with NETDEV_DOWN:
either the network device is actually going down, or IPv6 was disabled
on the interface.
If either of them stays down while the other is toggled, we repeatedly
call the code for NETDEV_DOWN, including ipv6_mc_down(), while never
calling the corresponding ipv6_mc_up() in between. This will cause a
new entry in idev->mc_tomb to be allocated for each multicast group
the interface is subscribed to, which in turn leaks one struct ifmcaddr6
per nontrivial multicast group the interface is subscribed to.
The following reproducer will leak at least $n objects:
ip addr add ff2e::4242/32 dev eth0 autojoin
sysctl -w net.ipv6.conf.eth0.disable_ipv6=1
for i in $(seq 1 $n); do
ip link set up eth0; ip link set down eth0
done
Joining groups with IPV6_ADD_MEMBERSHIP (unprivileged) or setting the
sysctl net.ipv6.conf.eth0.forwarding to 1 (=> subscribing to ff02::2)
can also be used to create a nontrivial idev->mc_list, which will the
leak objects with the right up-down-sequence.
Based on both sources for NETDEV_DOWN events the interface IPv6 state
should be considered:
- not ready if the network interface is not ready OR IPv6 is disabled
for it
- ready if the network interface is ready AND IPv6 is enabled for it
The functions ipv6_mc_up() and ipv6_down() should only be run when this
state changes.
Implement this by remembering when the IPv6 state is ready, and only
run ipv6_mc_down() if it actually changed from ready to not ready.
The other direction (not ready -> ready) already works correctly, as:
- the interface notification triggered codepath for NETDEV_UP /
NETDEV_CHANGE returns early if ipv6 is disabled, and
- the disable_ipv6=0 triggered codepath skips fully initializing the
interface as long as addrconf_link_ready(dev) returns false
- calling ipv6_mc_up() repeatedly does
Affected
21 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| debian | linux | < linux 5.16.14-1 (bookworm) | linux 5.16.14-1 (bookworm) |
| linux | linux | — | — |
| linux | linux | >= 3ce62a84d53cd3d3cc5377bbf339e9b08ddf9c36 < 9a8736b2da28b24f01707f592ff059b9f90a058c | 9a8736b2da28b24f01707f592ff059b9f90a058c |
| linux | linux | >= 3ce62a84d53cd3d3cc5377bbf339e9b08ddf9c36 < c71bf3229f9e9dd60ba02f5a5be02066edf57012 | c71bf3229f9e9dd60ba02f5a5be02066edf57012 |
| linux | linux | >= 3ce62a84d53cd3d3cc5377bbf339e9b08ddf9c36 < 24888915364cfa410de62d8abb5df95c3b67455d | 24888915364cfa410de62d8abb5df95c3b67455d |
| linux | linux | >= 3ce62a84d53cd3d3cc5377bbf339e9b08ddf9c36 < 9588ac2eddc2f223ebcebf6e9f5caed84d32922b | 9588ac2eddc2f223ebcebf6e9f5caed84d32922b |
| linux | linux | >= 3ce62a84d53cd3d3cc5377bbf339e9b08ddf9c36 < f4c63b24dea9cc2043ff845dcca9aaf8109ea38a | f4c63b24dea9cc2043ff845dcca9aaf8109ea38a |
| linux | linux | >= 3ce62a84d53cd3d3cc5377bbf339e9b08ddf9c36 < b11781515208dd31fbcd0b664078dce5dc44523f | b11781515208dd31fbcd0b664078dce5dc44523f |
| linux | linux | >= 3ce62a84d53cd3d3cc5377bbf339e9b08ddf9c36 < 72124e65a70b84e6303a5cd21b0ac1f27d7d61a4 | 72124e65a70b84e6303a5cd21b0ac1f27d7d61a4 |
| linux | linux | >= 3ce62a84d53cd3d3cc5377bbf339e9b08ddf9c36 < 9995b408f17ff8c7f11bc725c8aa225ba3a63b1c | 9995b408f17ff8c7f11bc725c8aa225ba3a63b1c |
| linux | linux_kernel | — | — |
| linux | linux_kernel | >= 0 < 5.10.106-1 | 5.10.106-1 |
| linux | linux_kernel | >= 0 < 5.16.14-1 | 5.16.14-1 |
| linux | linux_kernel | >= 0 < 5.16.14-1 | 5.16.14-1 |
| linux | linux_kernel | >= 0 < 5.16.14-1 | 5.16.14-1 |
| linux | linux_kernel | >= 3.18 < 4.9.313 | 4.9.313 |
| linux | linux_kernel | >= 4.10 < 4.14.278 | 4.14.278 |
| linux | linux_kernel | >= 4.15 < 5.4.193 | 5.4.193 |
| linux | linux_kernel | >= 5.11 < 5.15.27 | 5.15.27 |
| linux | linux_kernel | >= 5.16 < 5.16.13 | 5.16.13 |
| linux | linux_kernel | >= 5.5 < 5.10.104 | 5.10.104 |
CVSS provenance
nvdv3.15.5MEDIUMCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
osv5.5MEDIUM
vendor_debian5.5MEDIUM
vendor_redhat5.5MEDIUM
Stop checking back — get the weekly exploitation signal.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
GHSA
GHSA-23g6-fhm7-588p: In the Linux kernel, the following vulnerability has been resolved:
net: ipv6: ensure we call ipv6_mc_down() at most once
There are two reasons for
ghsa_unreviewed·2024-08-22
CVE-2022-48910 [MEDIUM] GHSA-23g6-fhm7-588p: In the Linux kernel, the following vulnerability has been resolved:
net: ipv6: ensure we call ipv6_mc_down() at most once
There are two reasons for
In the Linux kernel, the following vulnerability has been resolved:
net: ipv6: ensure we call ipv6_mc_down() at most once
There are two reasons for addrconf_notify() to be called with NETDEV_DOWN:
either the network device is actually going down, or IPv6 was disabled
on the interface.
If either of them stays down while the other is toggled, we repeatedly
call the code for NETDEV_DOWN, including ipv6_mc_down(), while never
calling the corresponding ipv6_mc_up() in between. This will cause a
new entry in idev->mc_tomb to be allocated for each multicast group
the interface is subscribed to, which in turn leaks one struct ifmcaddr6
per nontrivial multicast group the interface is subscribed to.
The following reproducer will leak at least $n objects:
ip addr add ff2e::4242/32 dev eth0 autoj
OSV
CVE-2022-48910: In the Linux kernel, the following vulnerability has been resolved: net: ipv6: ensure we call ipv6_mc_down() at most once There are two reasons for ad
osv·2024-08-22·CVSS 5.5
CVE-2022-48910 [MEDIUM] CVE-2022-48910: In the Linux kernel, the following vulnerability has been resolved: net: ipv6: ensure we call ipv6_mc_down() at most once There are two reasons for ad
In the Linux kernel, the following vulnerability has been resolved: net: ipv6: ensure we call ipv6_mc_down() at most once There are two reasons for addrconf_notify() to be called with NETDEV_DOWN: either the network device is actually going down, or IPv6 was disabled on the interface. If either of them stays down while the other is toggled, we repeatedly call the code for NETDEV_DOWN, including ipv6_mc_down(), while never calling the corresponding ipv6_mc_up() in between. This will cause a new entry in idev->mc_tomb to be allocated for each multicast group the interface is subscribed to, which in turn leaks one struct ifmcaddr6 per nontrivial multicast group the interface is subscribed to. The following reproducer will leak at least $n objects: ip addr add ff2e::4242/32 dev eth0 autojoin s
Red Hat
kernel: net: ipv6: ensure we call ipv6_mc_down() at most once
vendor_redhat·2024-08-22·CVSS 5.5
CVE-2022-48910 [MEDIUM] CWE-772 kernel: net: ipv6: ensure we call ipv6_mc_down() at most once
kernel: net: ipv6: ensure we call ipv6_mc_down() at most once
In the Linux kernel, the following vulnerability has been resolved:
net: ipv6: ensure we call ipv6_mc_down() at most once
There are two reasons for addrconf_notify() to be called with NETDEV_DOWN:
either the network device is actually going down, or IPv6 was disabled
on the interface.
If either of them stays down while the other is toggled, we repeatedly
call the code for NETDEV_DOWN, including ipv6_mc_down(), while never
calling the corresponding ipv6_mc_up() in between. This will cause a
new entry in idev->mc_tomb to be allocated for each multicast group
the interface is subscribed to, which in turn leaks one struct ifmcaddr6
per nontrivial multicast group the interface is subscribed to.
The following reproducer will leak at
Debian
CVE-2022-48910: linux - In the Linux kernel, the following vulnerability has been resolved: net: ipv6: ...
vendor_debian·2022·CVSS 5.5
CVE-2022-48910 [MEDIUM] CVE-2022-48910: linux - In the Linux kernel, the following vulnerability has been resolved: net: ipv6: ...
In the Linux kernel, the following vulnerability has been resolved: net: ipv6: ensure we call ipv6_mc_down() at most once There are two reasons for addrconf_notify() to be called with NETDEV_DOWN: either the network device is actually going down, or IPv6 was disabled on the interface. If either of them stays down while the other is toggled, we repeatedly call the code for NETDEV_DOWN, including ipv6_mc_down(), while never calling the corresponding ipv6_mc_up() in between. This will cause a new entry in idev->mc_tomb to be allocated for each multicast group the interface is subscribed to, which in turn leaks one struct ifmcaddr6 per nontrivial multicast group the interface is subscribed to. The following reproducer will leak at least $n objects: ip addr add ff2e::4242/32 dev eth0 autojoin s
No detection rules found.
No public exploits indexed.
No writeups or analysis indexed.
https://git.kernel.org/stable/c/24888915364cfa410de62d8abb5df95c3b67455dhttps://git.kernel.org/stable/c/72124e65a70b84e6303a5cd21b0ac1f27d7d61a4https://git.kernel.org/stable/c/9588ac2eddc2f223ebcebf6e9f5caed84d32922bhttps://git.kernel.org/stable/c/9995b408f17ff8c7f11bc725c8aa225ba3a63b1chttps://git.kernel.org/stable/c/9a8736b2da28b24f01707f592ff059b9f90a058chttps://git.kernel.org/stable/c/b11781515208dd31fbcd0b664078dce5dc44523fhttps://git.kernel.org/stable/c/c71bf3229f9e9dd60ba02f5a5be02066edf57012https://git.kernel.org/stable/c/f4c63b24dea9cc2043ff845dcca9aaf8109ea38a
2024-08-22
Published