CVE-2023-53987

Source
https://cve.org/CVERecord?id=CVE-2023-53987
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-53987.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2023-53987
Downstream
Published
2025-12-24T10:55:27Z
Modified
2026-10-08T02:48:35Z
Summary
ping: Fix potentail NULL deref for /proc/net/icmp.
Details

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.

Database specific
{
    "cna_assigner":  "Linux",
    "osv_generated_from":  "https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/53xxx/CVE-2023-53987.json"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
dbca1596bbb08318f5e3b3b99f8ca0a0d3830a65
Fixed
5a08a32e624908890aa0a2eb442bb6a7669891a8
Fixed
176cbb6da28f36506cc60a4bec4ab8df0c16713a
Fixed
ab5fb73ffa01072b4d8031cc05801fa1cb653bee
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
5.19.2
Fixed
5.20
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
de3d723a3985f282a8c9e468d1e198616eb291c8

Affected versions

v5.*
v5.19.10
v5.19.11
v5.19.12
v5.19.13
v5.19.14
v5.19.15
v5.19.16
v5.19.17
v5.19.2
v5.19.3
v5.19.4
v5.19.5
v5.19.6
v5.19.7
v5.19.8
v5.19.9

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-53987.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
6.0.0
Fixed
6.1.24
Type
ECOSYSTEM
Events
Introduced
6.2.0
Fixed
6.2.11

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-53987.json"