net: sched: act_connmark: initialize struct tc_ife to fix kernel leak
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 22a5dc0e5e3e8fef804230cd73ed7b0afd4c7bae · < 62b656e43eaeae445a39cd8021a4f47065af4389| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
net: sched: act_connmark: initialize struct tc_ife to fix kernel leak
In tcf_connmark_dump(), the variable 'opt' was partially initialized using a designatied initializer. While the padding bytes are reamined uninitialized. nla_put() copies the entire structure into a netlink message, these uninitialized bytes leaked to userspace.
Initialize the structure with memset before assigning its fields to ensure all members and padding are cleared prior to beign copied.
From the CVE record · Linux
In the Linux kernel's act_connmark code, tcf_connmark_dump() leaves structure padding uninitialized before copying it into a netlink message. This can expose uninitialized kernel bytes to userspace when the structure is dumped. The input does not specify authentication requirements or whether user interaction is needed.
Engineers running the Linux kernel should check whether their version is affected; affected versions are not specified.