netfilter: conntrack: add missing netlink policy validations
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ a258860e01b80e8f554a4ab1a6c95e6042eb8b73 · < 67c53c1978cef3c504237275e39c857e2f6af56e| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
netfilter: conntrack: add missing netlink policy validations
Hyunwoo Kim reports out-of-bounds access in sctp and ctnetlink.
These attributes are used by the kernel without any validation. Extend the netlink policies accordingly.
Quoting the reporter: nlattr_to_sctp() assigns the user-supplied CTA_PROTOINFO_SCTP_STATE value directly to ct->proto.sctp.state without checking that it is within the valid range. [..]
and: ... with exp->dir = 100, the access at ct->master->tuplehash[100] reads 5600 bytes past the start of a 320-byte nf_conn object, causing a slab-out-of-bounds read confirmed by UBSAN.
From the CVE record · Linux
Missing netlink policy validation in Linux kernel netfilter conntrack allows out-of-range, user-supplied attributes to cause out-of-bounds access in SCTP and ctnetlink. The report confirms an out-of-bounds read; it does not specify whether exploitation requires local or network access, authentication, or user interaction.
Engineers running the Linux kernel should check whether their kernel includes the netfilter conntrack fix; affected versions were not specified.