spi: tegra20-slink: fix UAF in tegra_slink_remove()
In the Linux kernel, the following vulnerability has been resolved: spi: tegra20-slink: fix UAF in tegra_slink_remove() After calling spi_unregister_master(), the refcount of master will be decrease to 0, and it will be freed in spi_controller_release(), 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.
- Products
- Kernel
- Affected versions
- Not specified
- Fixed versions
- 5.15.61, 5.18.18, 5.19.2
- CVEs
- CVE-2022-50192
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 3 Nov 2026, 05:19 UTC · Revision 1
Source evidence
spi: tegra20-slink: fix UAF in tegra_slink_remove()
core-osv · Original sourcePublished 18 Jun 2025, 11:03 UTC
In the Linux kernel, the following vulnerability has been resolved: spi: tegra20-slink: fix UAF in tegra_slink_remove() After calling spi_unregister_master(), the refcount of master will be decrease to 0, and it will be freed in spi_controller_release(), 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.
osv:CVE-2022-50192
Kernel
Fixed versions: 5.15.61, 5.18.18, 5.19.2
Complete source record
{
"id": "82d4e1acadf393d80a5a6747eb4438f608b4ce599c1afa1f6a7188b65163349a",
"url": "https://osv.dev/vulnerability/CVE-2022-50192",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "spi: tegra20-slink: fix UAF in tegra_slink_remove()",
"summary": "In the Linux kernel, the following vulnerability has been resolved: spi: tegra20-slink: fix UAF in tegra_slink_remove() After calling spi_unregister_master(), the refcount of master will be decrease to 0, and it will be freed in spi_controller_release(), 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.",
"evidence": "osv:CVE-2022-50192",
"products": [
{
"name": {
"value": "Kernel",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "5.15.61",
"evidence": "/affected/1/ranges"
},
{
"value": "5.18.18",
"evidence": "/affected/1/ranges"
},
{
"value": "5.19.2",
"evidence": "/affected/1/ranges"
}
],
"affected_versions": []
}
],
"severity": "unknown",
"structured": {
"id": "CVE-2022-50192",
"aliases": [
"CVE-2022-50192"
],
"affected": [
{
"ranges": [
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"type": "GIT",
"events": [
{
"introduced": "26c863418221344b1cfb8e6c11116b2b81144281"
},
{
"fixed": "415b4ce61308f24583912d887772dfcbf97f1d20"
},
{
"fixed": "800c7767e05d29656713e04532823a752e57e037"
},
{
"fixed": "67f77172644260482fdafc03b6025847944701e5"
},
{
"fixed": "7e9984d183bb1e99e766c5c2b950ff21f7f7b6c0"
}
]
}
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-50192.json"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "5.15.0"
},
{
"fixed": "5.15.61"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "5.16.0"
},
{
"fixed": "5.18.18"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "5.19.0"
},
{
"fixed": "5.19.2"
}
]
}
],
"package": {
"name": "Kernel",
"ecosystem": "Linux"
},
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-50192.json"
}
}
],
"modified": "2026-10-28T02:30:26.133398029Z",
"provider": "osv",
"references": [
"https://git.kernel.org/stable/c/415b4ce61308f24583912d887772dfcbf97f1d20",
"https://git.kernel.org/stable/c/67f77172644260482fdafc03b6025847944701e5",
"https://git.kernel.org/stable/c/7e9984d183bb1e99e766c5c2b950ff21f7f7b6c0",
"https://git.kernel.org/stable/c/800c7767e05d29656713e04532823a752e57e037",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/50xxx/CVE-2022-50192.json",
"https://nvd.nist.gov/vuln/detail/CVE-2022-50192",
"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
],
"provider_metadata": {
"cna_assigner": "Linux",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/50xxx/CVE-2022-50192.json"
}
},
"related_cves": [
{
"value": "CVE-2022-50192",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": null
},
"source_id": "core-osv",
"document_id": 492689,
"published_at": "2025-06-18T11:03:37.549+00:00"
}