In the Linux kernel, the following vulnerability has been resolved:
can: dev: can_restart: fix use after free bug
After calling netif_rx_ni(skb), dereferencing skb is unsafe. Especially, the can_frame cf which aliases skb memory is accessed after the netif_rx_ni() in: stats->rx_bytes += cf->len;
Reordering the lines solves the issue.
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2021-47668.json"
[
{
"events": [
{
"introduced": "2.6.31"
},
{
"fixed": "4.4.254"
}
]
},
{
"events": [
{
"introduced": "4.5"
},
{
"fixed": "4.9.254"
}
]
},
{
"events": [
{
"introduced": "4.10"
},
{
"fixed": "4.14.218"
}
]
},
{
"events": [
{
"introduced": "4.15"
},
{
"fixed": "4.19.171"
}
]
},
{
"events": [
{
"introduced": "4.20"
},
{
"fixed": "5.4.93"
}
]
},
{
"events": [
{
"introduced": "5.5"
},
{
"fixed": "5.10.11"
}
]
},
{
"events": [
{
"introduced": "0"
},
{
"last_affected": "5.11-rc1"
}
]
},
{
"events": [
{
"introduced": "0"
},
{
"last_affected": "5.11-rc2"
}
]
},
{
"events": [
{
"introduced": "0"
},
{
"last_affected": "5.11-rc3"
}
]
},
{
"events": [
{
"introduced": "0"
},
{
"last_affected": "5.11-rc4"
}
]
}
]