In the Linux kernel, the following vulnerability has been resolved:
macvlan: add forgotten nlapolicy for IFLAMACVLANBCCUTOFF
The previous commit 954d1fa1ac93 ("macvlan: Add netlink attribute for broadcast cutoff") added one additional attribute named IFLAMACVLANBC_CUTOFF to allow broadcast cutfoff.
However, it forgot to describe the nlapolicy at macvlanpolicy (drivers/net/macvlan.c). Hence, this suppose NLA_S32 (4 bytes) integer can be faked as empty (0 bytes) by a malicious user, which could leads to OOB in heap just like CVE-2023-3773.
To fix it, this commit just completes the nlapolicy description for IFLAMACVLANBCCUTOFF. This enforces the length check and avoids the potential OOB read.
[
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@55cef78c244d0d076f5a75a35530ca63c92f4426",
"signature_version": "v1",
"deprecated": false,
"target": {
"file": "drivers/net/macvlan.c"
},
"id": "CVE-2023-53516-32e7c059",
"digest": {
"threshold": 0.9,
"line_hashes": [
"231896791926298199024504274134414468524",
"44070784757935394698580541106425470984",
"12085449980150389533260824347150222645",
"185440807030940563390914203614160125923"
]
},
"signature_type": "Line"
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@79f44709aa7a744fbfbadd4aef678443290c6991",
"signature_version": "v1",
"deprecated": false,
"target": {
"file": "drivers/net/macvlan.c"
},
"id": "CVE-2023-53516-80ab9fba",
"digest": {
"threshold": 0.9,
"line_hashes": [
"231896791926298199024504274134414468524",
"44070784757935394698580541106425470984",
"12085449980150389533260824347150222645",
"185440807030940563390914203614160125923"
]
},
"signature_type": "Line"
}
]