In the Linux kernel, the following vulnerability has been resolved:
iommu: sprd: Avoid NULL deref in sprdiommuhw_en
In sprdiommucleanup() before calling function sprdiommuhw_en() dom->sdev is equal to NULL, which leads to null dereference.
Found by Linux Verification Center (linuxtesting.org) with SVACE.
[
{
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@d5fe884ce28c5005f8582c35333c195a168f841c",
"digest": {
"length": 264.0,
"function_hash": "245872113967368556813170764455744199954"
},
"signature_type": "Function",
"id": "CVE-2024-42277-01c754f5",
"target": {
"function": "sprd_iommu_cleanup",
"file": "drivers/iommu/sprd-iommu.c"
},
"signature_version": "v1"
},
{
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@b62841e49a2b7938f6fdeaaf93fb57e4eb880bdb",
"digest": {
"length": 264.0,
"function_hash": "245872113967368556813170764455744199954"
},
"signature_type": "Function",
"id": "CVE-2024-42277-1e41d9ea",
"target": {
"function": "sprd_iommu_cleanup",
"file": "drivers/iommu/sprd-iommu.c"
},
"signature_version": "v1"
},
{
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@8c79ceb4ecf823e6ec10fee6febb0fca3de79922",
"digest": {
"line_hashes": [
"136894159518836989734257571941469055895",
"225651155689574212105699620270123039652",
"209062494189094701625576587276569891515",
"238602134741821550085610997686410100930",
"274227292922260187306386279094314572359"
],
"threshold": 0.9
},
"signature_type": "Line",
"id": "CVE-2024-42277-1e9284ee",
"target": {
"file": "drivers/iommu/sprd-iommu.c"
},
"signature_version": "v1"
},
{
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@8c79ceb4ecf823e6ec10fee6febb0fca3de79922",
"digest": {
"length": 264.0,
"function_hash": "245872113967368556813170764455744199954"
},
"signature_type": "Function",
"id": "CVE-2024-42277-67b01a44",
"target": {
"function": "sprd_iommu_cleanup",
"file": "drivers/iommu/sprd-iommu.c"
},
"signature_version": "v1"
},
{
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@b62841e49a2b7938f6fdeaaf93fb57e4eb880bdb",
"digest": {
"line_hashes": [
"136894159518836989734257571941469055895",
"225651155689574212105699620270123039652",
"209062494189094701625576587276569891515",
"238602134741821550085610997686410100930",
"274227292922260187306386279094314572359"
],
"threshold": 0.9
},
"signature_type": "Line",
"id": "CVE-2024-42277-80142574",
"target": {
"file": "drivers/iommu/sprd-iommu.c"
},
"signature_version": "v1"
},
{
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@dfe90030a0cfa26dca4cb6510de28920e5ad22fb",
"digest": {
"length": 264.0,
"function_hash": "245872113967368556813170764455744199954"
},
"signature_type": "Function",
"id": "CVE-2024-42277-a07ab558",
"target": {
"function": "sprd_iommu_cleanup",
"file": "drivers/iommu/sprd-iommu.c"
},
"signature_version": "v1"
},
{
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@dfe90030a0cfa26dca4cb6510de28920e5ad22fb",
"digest": {
"line_hashes": [
"136894159518836989734257571941469055895",
"225651155689574212105699620270123039652",
"209062494189094701625576587276569891515",
"238602134741821550085610997686410100930",
"274227292922260187306386279094314572359"
],
"threshold": 0.9
},
"signature_type": "Line",
"id": "CVE-2024-42277-b14c621c",
"target": {
"file": "drivers/iommu/sprd-iommu.c"
},
"signature_version": "v1"
},
{
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@630482ee0653decf9e2482ac6181897eb6cde5b8",
"digest": {
"line_hashes": [
"136894159518836989734257571941469055895",
"225651155689574212105699620270123039652",
"209062494189094701625576587276569891515",
"238602134741821550085610997686410100930",
"274227292922260187306386279094314572359"
],
"threshold": 0.9
},
"signature_type": "Line",
"id": "CVE-2024-42277-cb8ec696",
"target": {
"file": "drivers/iommu/sprd-iommu.c"
},
"signature_version": "v1"
},
{
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@630482ee0653decf9e2482ac6181897eb6cde5b8",
"digest": {
"length": 264.0,
"function_hash": "245872113967368556813170764455744199954"
},
"signature_type": "Function",
"id": "CVE-2024-42277-dba804cb",
"target": {
"function": "sprd_iommu_cleanup",
"file": "drivers/iommu/sprd-iommu.c"
},
"signature_version": "v1"
},
{
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@d5fe884ce28c5005f8582c35333c195a168f841c",
"digest": {
"line_hashes": [
"136894159518836989734257571941469055895",
"225651155689574212105699620270123039652",
"209062494189094701625576587276569891515",
"238602134741821550085610997686410100930",
"274227292922260187306386279094314572359"
],
"threshold": 0.9
},
"signature_type": "Line",
"id": "CVE-2024-42277-ed6c8338",
"target": {
"file": "drivers/iommu/sprd-iommu.c"
},
"signature_version": "v1"
}
]