In the Linux kernel, the following vulnerability has been resolved:
iommu/arm-smmu: fix possible null-ptr-deref in armsmmudevice_probe()
It will cause null-ptr-deref when using 'res', if platformgetresource() returns NULL, so move using 'res' after devmioremapresource() that will check it to avoid null-ptr-deref. And use devmplatformgetandioremap_resource() to simplify code.
[
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@98dd53a92825747395649f54d23512a13c3ed471",
"id": "CVE-2022-49323-165ff5f1",
"deprecated": false,
"target": {
"file": "drivers/iommu/arm/arm-smmu/arm-smmu.c"
},
"signature_version": "v1",
"digest": {
"threshold": 0.9,
"line_hashes": [
"58684669179163828378809282337828444098",
"225945927413244065012058899535894304303",
"808396667910155213163730636733600388",
"218509697422636146381782423122889048516",
"181776167536451027458228051044496154954",
"321506181363419104768556188112841410029",
"62872282118511422989538935086482153169",
"208212883980204642425854426720397334757"
]
},
"signature_type": "Line"
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@449fc4561762ad9ad85362d5f01f0d0df397457a",
"id": "CVE-2022-49323-19c1219b",
"deprecated": false,
"target": {
"file": "drivers/iommu/arm/arm-smmu/arm-smmu.c"
},
"signature_version": "v1",
"digest": {
"threshold": 0.9,
"line_hashes": [
"222816562311301955685770907570061543616",
"225945927413244065012058899535894304303",
"808396667910155213163730636733600388",
"218509697422636146381782423122889048516",
"181776167536451027458228051044496154954",
"321506181363419104768556188112841410029",
"62872282118511422989538935086482153169",
"208212883980204642425854426720397334757"
]
},
"signature_type": "Line"
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@80776a71340f57d6a4952635fc89f0342072f3ca",
"id": "CVE-2022-49323-4e3af99b",
"deprecated": false,
"target": {
"file": "drivers/iommu/arm/arm-smmu/arm-smmu.c"
},
"signature_version": "v1",
"digest": {
"threshold": 0.9,
"line_hashes": [
"58684669179163828378809282337828444098",
"225945927413244065012058899535894304303",
"808396667910155213163730636733600388",
"218509697422636146381782423122889048516",
"181776167536451027458228051044496154954",
"321506181363419104768556188112841410029",
"62872282118511422989538935086482153169",
"208212883980204642425854426720397334757"
]
},
"signature_type": "Line"
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@449fc4561762ad9ad85362d5f01f0d0df397457a",
"id": "CVE-2022-49323-57f8e1dd",
"deprecated": false,
"target": {
"function": "arm_smmu_device_probe",
"file": "drivers/iommu/arm/arm-smmu/arm-smmu.c"
},
"signature_version": "v1",
"digest": {
"length": 3025.0,
"function_hash": "152334924615663014249117699052978647025"
},
"signature_type": "Function"
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@d9ed8af1dee37f181096631fb03729ece98ba816",
"id": "CVE-2022-49323-691c58f1",
"deprecated": false,
"target": {
"file": "drivers/iommu/arm/arm-smmu/arm-smmu.c"
},
"signature_version": "v1",
"digest": {
"threshold": 0.9,
"line_hashes": [
"222816562311301955685770907570061543616",
"225945927413244065012058899535894304303",
"808396667910155213163730636733600388",
"218509697422636146381782423122889048516",
"181776167536451027458228051044496154954",
"321506181363419104768556188112841410029",
"62872282118511422989538935086482153169",
"208212883980204642425854426720397334757"
]
},
"signature_type": "Line"
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@80776a71340f57d6a4952635fc89f0342072f3ca",
"id": "CVE-2022-49323-6f7bcfb1",
"deprecated": false,
"target": {
"function": "arm_smmu_device_probe",
"file": "drivers/iommu/arm/arm-smmu/arm-smmu.c"
},
"signature_version": "v1",
"digest": {
"length": 3020.0,
"function_hash": "297168281419946803480431629347422762698"
},
"signature_type": "Function"
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@3660db29b0305f9a1d95979c7af0f5db6ea99f5d",
"id": "CVE-2022-49323-916c4383",
"deprecated": false,
"target": {
"function": "arm_smmu_device_probe",
"file": "drivers/iommu/arm/arm-smmu/arm-smmu.c"
},
"signature_version": "v1",
"digest": {
"length": 2920.0,
"function_hash": "104356855291799950808792990103458892739"
},
"signature_type": "Function"
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@d9ed8af1dee37f181096631fb03729ece98ba816",
"id": "CVE-2022-49323-c2783bde",
"deprecated": false,
"target": {
"function": "arm_smmu_device_probe",
"file": "drivers/iommu/arm/arm-smmu/arm-smmu.c"
},
"signature_version": "v1",
"digest": {
"length": 3025.0,
"function_hash": "152334924615663014249117699052978647025"
},
"signature_type": "Function"
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@3660db29b0305f9a1d95979c7af0f5db6ea99f5d",
"id": "CVE-2022-49323-cb0bc62e",
"deprecated": false,
"target": {
"file": "drivers/iommu/arm/arm-smmu/arm-smmu.c"
},
"signature_version": "v1",
"digest": {
"threshold": 0.9,
"line_hashes": [
"58684669179163828378809282337828444098",
"225945927413244065012058899535894304303",
"808396667910155213163730636733600388",
"218509697422636146381782423122889048516",
"181776167536451027458228051044496154954",
"321506181363419104768556188112841410029",
"62872282118511422989538935086482153169",
"208212883980204642425854426720397334757"
]
},
"signature_type": "Line"
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@98dd53a92825747395649f54d23512a13c3ed471",
"id": "CVE-2022-49323-f48cd8c4",
"deprecated": false,
"target": {
"function": "arm_smmu_device_probe",
"file": "drivers/iommu/arm/arm-smmu/arm-smmu.c"
},
"signature_version": "v1",
"digest": {
"length": 3020.0,
"function_hash": "297168281419946803480431629347422762698"
},
"signature_type": "Function"
}
]