Linux kernel data exposure in netlink socket filtering
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ b1153f29ee07dc1a788964409255a4b4fae50b98 · < 06935da5de83aa8b98841563894857e7d2f80e47| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
netlink: reset skb headers before unicast and multicast filtering
Socket filters can use SKF_NET_OFF and SKF_LL_OFF to read relative to an skb's network and MAC headers. Netlink producers may reserve headroom without resetting those headers, allowing a receiving socket's filter to read data before the initialized message.
For example, IWPM HELLO replies are allocated with dev_alloc_skb(), which reserves NET_SKB_PAD bytes. An unprivileged NETLINK_RDMA user can attach a classic socket filter and disclose this headroom through the length of the delivered reply. The resets in netlink_dump() do not help because IWPM sends a separately allocated skb through netlink_unicast().
Reset both headers before running the receiver's filter in unicast and broadcast delivery, as is already done for dump skbs. This also covers other netlink producers that reserve headroom without changing their allocation or message-building code.
From the CVE record · Linux
Netlink can pass messages to socket filters without resetting network and MAC headers, allowing filters to read before the initialized message. A local, unprivileged NETLINK_RDMA user can attach a classic socket filter and disclose reserved headroom through the length of a delivered reply; no additional user interaction is described.
Anyone running the Linux kernel should check whether their version is affected; affected versions are not specified.