net: fix information leakage in /proc/net/ptype
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 2feb27dbe00cbb4f7d31f90acf6bd0d751dd0a50 · < db044d97460ea792110eb8b971e82569ded536c6| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
net: fix information leakage in /proc/net/ptype
In one net namespace, after creating a packet socket without binding it to a device, users in other net namespaces can observe the new `packet_type` added by this packet socket by reading `/proc/net/ptype` file. This is minor information leakage as packet socket is namespace aware.
Add a net pointer in `packet_type` to keep the net namespace of of corresponding packet socket. In `ptype_seq_show`, this net pointer must be checked when it is not NULL.
From the CVE record · Linux
A packet socket created without binding to a device can appear in /proc/net/ptype in other network namespaces. A user who can read that file from another namespace can observe the packet socket entry, causing minor information leakage.
Administrators running Linux kernels with network namespaces should check whether their kernel includes this fix.