# CVE-2023-53987: ping: Fix potentail NULL deref for /proc/net/icmp.

- Severity: not scored yet
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.21%, higher than 12% of CVEs (2026-12-01)
- Published: 2025-12-24T10:55:27.032Z
- Modified: 2026-06-17T06:46:29.500Z
- Assigned by: Linux

## Description

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.

(As written by CVE List.)

## Affected

- Linux Linux: from dbca1596bbb08318f5e3b3b99f8ca0a0d3830a65 before 5a08a32e624908890aa0a2eb442bb6a7669891a8; from dbca1596bbb08318f5e3b3b99f8ca0a0d3830a65 before 176cbb6da28f36506cc60a4bec4ab8df0c16713a; from dbca1596bbb08318f5e3b3b99f8ca0a0d3830a65 before ab5fb73ffa01072b4d8031cc05801fa1cb653bee; de3d723a3985f282a8c9e468d1e198616eb291c8; from 5.19.2 before 5.20; 6.0 (not affected: before 6.0; from 6.1.24 up to 6.1.*; from 6.2.11 up to 6.2.*; from 6.3 up to *)

## References

- <https://git.kernel.org/stable/c/5a08a32e624908890aa0a2eb442bb6a7669891a8>
- <https://git.kernel.org/stable/c/176cbb6da28f36506cc60a4bec4ab8df0c16713a>
- <https://git.kernel.org/stable/c/ab5fb73ffa01072b4d8031cc05801fa1cb653bee>

## Sources

- CVE List: [CVE-2023-53987](https://www.cve.org/CVERecord?id=CVE-2023-53987), CVE Terms of Use, modified 2026-05-23
- NVD: [CVE-2023-53987](https://nvd.nist.gov/vuln/detail/CVE-2023-53987), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2023-53987 · Whole record: https://cve.day/CVE-2023-53987.json · Rebuilt by cve.day 2026-11-25T22:58:35.131Z
