ping: Fix potentail NULL deref for /proc/net/icmp.
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
6.0
|
In the Linux kernel, the following vulnerability has been resolved:
ping: Fix potentail NULL deref for /proc/net/icmp.
After commit dbca1596bbb0 ("ping: convert to RCU lookups, get rid of rwlock"), we use RCU for ping sockets, but we should use spinlock for /proc/net/icmp to avoid a potential NULL deref mentioned in the previous patch.
Let's go back to using spinlock there.
Note we can convert ping sockets to use hlist instead of hlist_nulls because we do not use SLAB_TYPESAFE_BY_RCU for ping sockets.
From the CVE record · Linux
After the change to RCU lookups for ping sockets, access to /proc/net/icmp can potentially cause a NULL pointer dereference. This requires local access to the proc entry; the input does not specify authentication requirements or additional user interaction.
Administrators running Linux kernels that include the ping-socket RCU lookup change should check whether their kernels are affected; no affected versions are listed.