In the Linux kernel, the following vulnerability has been resolved:
net/smc: remove device from smcddevlist after failed device_add()
If the deviceadd() for a smcddev fails, there's no cleanup step that rolls back the earlier list_add(). The device subsequently gets freed, and we end up with a corrupted list.
Add some error handling that removes the device from the list.
[
{
"events": [
{
"introduced": "4.19"
},
{
"fixed": "5.10.42"
}
]
},
{
"events": [
{
"introduced": "5.11"
},
{
"fixed": "5.12.9"
}
]
},
{
"events": [
{
"introduced": "0"
},
{
"last_affected": "5.13-rc1"
}
]
},
{
"events": [
{
"introduced": "0"
},
{
"last_affected": "5.13-rc2"
}
]
},
{
"events": [
{
"introduced": "0"
},
{
"last_affected": "5.13-rc3"
}
]
}
]
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2021-47143.json"