In the Linux kernel, the following vulnerability has been resolved:
spi: tegra20-slink: fix UAF in tegraslinkremove()
After calling spiunregistermaster(), the refcount of master will be decrease to 0, and it will be freed in spicontrollerrelease(), the device data also will be freed, so it will lead a UAF when using 'tspi'. To fix this, get the master before unregister and put it when finish using it.
[
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@415b4ce61308f24583912d887772dfcbf97f1d20",
"target": {
"function": "tegra_slink_remove",
"file": "drivers/spi/spi-tegra20-slink.c"
},
"deprecated": false,
"signature_version": "v1",
"id": "CVE-2022-50192-393eaa7f",
"signature_type": "Function",
"digest": {
"length": 308.0,
"function_hash": "215828067877635553323972085432703283587"
}
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@67f77172644260482fdafc03b6025847944701e5",
"target": {
"file": "drivers/spi/spi-tegra20-slink.c"
},
"deprecated": false,
"signature_version": "v1",
"id": "CVE-2022-50192-54a4f3e3",
"signature_type": "Line",
"digest": {
"threshold": 0.9,
"line_hashes": [
"243383878365434419953661839464292406028",
"59607214593640830637557183273530106737",
"66478161337334253745913375628453009019",
"242258730014712246346481223150757556637",
"39876553889724952899362492362766961512",
"221008970445253629111665728973052729921",
"219517463703355683497273173431475460953"
]
}
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@415b4ce61308f24583912d887772dfcbf97f1d20",
"target": {
"file": "drivers/spi/spi-tegra20-slink.c"
},
"deprecated": false,
"signature_version": "v1",
"id": "CVE-2022-50192-71d0edb9",
"signature_type": "Line",
"digest": {
"threshold": 0.9,
"line_hashes": [
"243383878365434419953661839464292406028",
"59607214593640830637557183273530106737",
"66478161337334253745913375628453009019",
"242258730014712246346481223150757556637",
"39876553889724952899362492362766961512",
"221008970445253629111665728973052729921",
"219517463703355683497273173431475460953"
]
}
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@800c7767e05d29656713e04532823a752e57e037",
"target": {
"file": "drivers/spi/spi-tegra20-slink.c"
},
"deprecated": false,
"signature_version": "v1",
"id": "CVE-2022-50192-b18c4af3",
"signature_type": "Line",
"digest": {
"threshold": 0.9,
"line_hashes": [
"243383878365434419953661839464292406028",
"59607214593640830637557183273530106737",
"66478161337334253745913375628453009019",
"242258730014712246346481223150757556637",
"39876553889724952899362492362766961512",
"221008970445253629111665728973052729921",
"219517463703355683497273173431475460953"
]
}
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@67f77172644260482fdafc03b6025847944701e5",
"target": {
"function": "tegra_slink_remove",
"file": "drivers/spi/spi-tegra20-slink.c"
},
"deprecated": false,
"signature_version": "v1",
"id": "CVE-2022-50192-c12e2211",
"signature_type": "Function",
"digest": {
"length": 308.0,
"function_hash": "215828067877635553323972085432703283587"
}
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@7e9984d183bb1e99e766c5c2b950ff21f7f7b6c0",
"target": {
"file": "drivers/spi/spi-tegra20-slink.c"
},
"deprecated": false,
"signature_version": "v1",
"id": "CVE-2022-50192-cdf18ade",
"signature_type": "Line",
"digest": {
"threshold": 0.9,
"line_hashes": [
"243383878365434419953661839464292406028",
"59607214593640830637557183273530106737",
"66478161337334253745913375628453009019",
"242258730014712246346481223150757556637",
"39876553889724952899362492362766961512",
"221008970445253629111665728973052729921",
"219517463703355683497273173431475460953"
]
}
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@800c7767e05d29656713e04532823a752e57e037",
"target": {
"function": "tegra_slink_remove",
"file": "drivers/spi/spi-tegra20-slink.c"
},
"deprecated": false,
"signature_version": "v1",
"id": "CVE-2022-50192-e000ced4",
"signature_type": "Function",
"digest": {
"length": 308.0,
"function_hash": "215828067877635553323972085432703283587"
}
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@7e9984d183bb1e99e766c5c2b950ff21f7f7b6c0",
"target": {
"function": "tegra_slink_remove",
"file": "drivers/spi/spi-tegra20-slink.c"
},
"deprecated": false,
"signature_version": "v1",
"id": "CVE-2022-50192-fcba8779",
"signature_type": "Function",
"digest": {
"length": 308.0,
"function_hash": "215828067877635553323972085432703283587"
}
}
]