CVE-2023-53532

Source
https://nvd.nist.gov/vuln/detail/CVE-2023-53532
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-53532.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2023-53532
Downstream
Related
Published
2025-10-01T11:46:16Z
Modified
2025-10-21T17:19:38.254642Z
Summary
wifi: ath11k: fix deinitialization of firmware resources
Details

In the Linux kernel, the following vulnerability has been resolved:

wifi: ath11k: fix deinitialization of firmware resources

Currently, in ath11kahbfwresourcesinit(), iommu domain mapping is done only for the chipsets having fixed firmware memory. Also, for such chipsets, mapping is done only if it does not have TrustZone support.

During deinitialization, only if TrustZone support is not there, iommu is unmapped back. However, for non fixed firmware memory chipsets, TrustZone support is not there and this makes the condition check to true and it tries to unmap the memory which was not mapped during initialization.

This leads to the following trace -

[ 83.198790] Unable to handle kernel NULL pointer dereference at virtual address 0000000000000008 [ 83.259537] Modules linked in: ath11kahb ath11k qmihelpers .. snip .. [ 83.280286] pstate: 20000005 (nzCv daif -PAN -UAO -TCO -DIT -SSBS BTYPE=--) [ 83.287228] pc : _iommuunmap+0x30/0x140 [ 83.293907] lr : iommuunmap+0x5c/0xa4 [ 83.298072] sp : ffff80000b3abad0 .. snip .. [ 83.369175] Call trace: [ 83.376282] _iommuunmap+0x30/0x140 [ 83.378541] iommuunmap+0x5c/0xa4 [ 83.382360] ath11kahbfwresourcedeinit.part.12+0x2c/0xac [ath11kahb] [ 83.385666] ath11kahbfreeresources+0x140/0x17c [ath11kahb] [ 83.392521] ath11kahbshutdown+0x34/0x40 [ath11kahb] [ 83.398248] platformshutdown+0x20/0x2c [ 83.403455] deviceshutdown+0x16c/0x1c4 [ 83.407621] kernelrestartprepare+0x34/0x3c [ 83.411529] kernelrestart+0x14/0x74 [ 83.415781] _dosysreboot+0x1c4/0x22c [ 83.419427] _arm64sysreboot+0x1c/0x24 [ 83.423420] invokesyscall+0x44/0xfc [ 83.427326] el0svccommon.constprop.3+0xac/0xe8 [ 83.430974] doel0svc+0xa0/0xa8 [ 83.435659] el0svc+0x1c/0x44 [ 83.438957] el0t64synchandler+0x60/0x144 [ 83.441910] el0t64sync+0x15c/0x160 [ 83.446343] Code: aa0103f4 f9400001 f90027a1 d2800001 (f94006a0) [ 83.449903] ---[ end trace 0000000000000000 ]---

This can be reproduced by probing an AHB chipset which is not having a fixed memory region. During reboot (or rmmod) trace can be seen.

Fix this issue by adding a condition check on firmware fixed memory hw_param as done in the counter initialization function.

Tested-on: IPQ8074 hw2.0 AHB WLAN.HK.2.7.0.1-01744-QCAHKSWPL_SILICONZ-1

References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
f9eec4947add999e1251bf14365a48a655b786a4
Fixed
0324300dce3412d4737b4ec5898d0188495a7caa
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
f9eec4947add999e1251bf14365a48a655b786a4
Fixed
8faf862d81ab197757761e87d0a99fbb96ab2cf0
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
f9eec4947add999e1251bf14365a48a655b786a4
Fixed
a1548363582a8066edd4986f839d785f13dda3aa
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
f9eec4947add999e1251bf14365a48a655b786a4
Fixed
5a78ac33e3cb8822da64dd1af196e83664b332b0

Affected versions

v5.*

v5.18
v5.18-rc5
v5.18-rc6
v5.18-rc7
v5.19
v5.19-rc1
v5.19-rc2
v5.19-rc3
v5.19-rc4
v5.19-rc5
v5.19-rc6
v5.19-rc7
v5.19-rc8

v6.*

v6.0
v6.0-rc1
v6.0-rc2
v6.0-rc3
v6.0-rc4
v6.0-rc5
v6.0-rc6
v6.0-rc7
v6.1
v6.1-rc1
v6.1-rc2
v6.1-rc3
v6.1-rc4
v6.1-rc5
v6.1-rc6
v6.1-rc7
v6.1-rc8
v6.1.1
v6.1.10
v6.1.11
v6.1.12
v6.1.13
v6.1.14
v6.1.15
v6.1.16
v6.1.17
v6.1.18
v6.1.19
v6.1.2
v6.1.20
v6.1.21
v6.1.22
v6.1.23
v6.1.24
v6.1.25
v6.1.26
v6.1.27
v6.1.3
v6.1.4
v6.1.5
v6.1.6
v6.1.7
v6.1.8
v6.1.9
v6.2
v6.2-rc1
v6.2-rc2
v6.2-rc3
v6.2-rc4
v6.2-rc5
v6.2-rc6
v6.2-rc7
v6.2-rc8
v6.2.1
v6.2.10
v6.2.11
v6.2.12
v6.2.13
v6.2.14
v6.2.2
v6.2.3
v6.2.4
v6.2.5
v6.2.6
v6.2.7
v6.2.8
v6.2.9
v6.3
v6.3-rc1
v6.3-rc2
v6.3-rc3
v6.3-rc4
v6.3-rc5
v6.3-rc6
v6.3-rc7
v6.3.1

Database specific

vanir_signatures

[
    {
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@8faf862d81ab197757761e87d0a99fbb96ab2cf0",
        "target": {
            "function": "ath11k_ahb_fw_resource_deinit",
            "file": "drivers/net/wireless/ath/ath11k/ahb.c"
        },
        "signature_version": "v1",
        "deprecated": false,
        "id": "CVE-2023-53532-120c8f5e",
        "signature_type": "Function",
        "digest": {
            "function_hash": "237224599534565344142978960591110020898",
            "length": 632.0
        }
    },
    {
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@5a78ac33e3cb8822da64dd1af196e83664b332b0",
        "target": {
            "function": "ath11k_ahb_fw_resource_deinit",
            "file": "drivers/net/wireless/ath/ath11k/ahb.c"
        },
        "signature_version": "v1",
        "deprecated": false,
        "id": "CVE-2023-53532-6e4529cb",
        "signature_type": "Function",
        "digest": {
            "function_hash": "237224599534565344142978960591110020898",
            "length": 632.0
        }
    },
    {
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@0324300dce3412d4737b4ec5898d0188495a7caa",
        "target": {
            "file": "drivers/net/wireless/ath/ath11k/ahb.c"
        },
        "signature_version": "v1",
        "deprecated": false,
        "id": "CVE-2023-53532-7c4bd6be",
        "signature_type": "Line",
        "digest": {
            "line_hashes": [
                "78806789897975140080496212085092749760",
                "100967527744199783521191439912908520462",
                "164344114576655288372170972819466939049"
            ],
            "threshold": 0.9
        }
    },
    {
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@8faf862d81ab197757761e87d0a99fbb96ab2cf0",
        "target": {
            "file": "drivers/net/wireless/ath/ath11k/ahb.c"
        },
        "signature_version": "v1",
        "deprecated": false,
        "id": "CVE-2023-53532-7f2a7f6b",
        "signature_type": "Line",
        "digest": {
            "line_hashes": [
                "78806789897975140080496212085092749760",
                "100967527744199783521191439912908520462",
                "164344114576655288372170972819466939049"
            ],
            "threshold": 0.9
        }
    },
    {
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@5a78ac33e3cb8822da64dd1af196e83664b332b0",
        "target": {
            "file": "drivers/net/wireless/ath/ath11k/ahb.c"
        },
        "signature_version": "v1",
        "deprecated": false,
        "id": "CVE-2023-53532-8cebcb09",
        "signature_type": "Line",
        "digest": {
            "line_hashes": [
                "78806789897975140080496212085092749760",
                "100967527744199783521191439912908520462",
                "164344114576655288372170972819466939049"
            ],
            "threshold": 0.9
        }
    },
    {
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@0324300dce3412d4737b4ec5898d0188495a7caa",
        "target": {
            "function": "ath11k_ahb_fw_resource_deinit",
            "file": "drivers/net/wireless/ath/ath11k/ahb.c"
        },
        "signature_version": "v1",
        "deprecated": false,
        "id": "CVE-2023-53532-a5548f5b",
        "signature_type": "Function",
        "digest": {
            "function_hash": "237224599534565344142978960591110020898",
            "length": 632.0
        }
    },
    {
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@a1548363582a8066edd4986f839d785f13dda3aa",
        "target": {
            "file": "drivers/net/wireless/ath/ath11k/ahb.c"
        },
        "signature_version": "v1",
        "deprecated": false,
        "id": "CVE-2023-53532-b13f3035",
        "signature_type": "Line",
        "digest": {
            "line_hashes": [
                "78806789897975140080496212085092749760",
                "100967527744199783521191439912908520462",
                "164344114576655288372170972819466939049"
            ],
            "threshold": 0.9
        }
    },
    {
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@a1548363582a8066edd4986f839d785f13dda3aa",
        "target": {
            "function": "ath11k_ahb_fw_resource_deinit",
            "file": "drivers/net/wireless/ath/ath11k/ahb.c"
        },
        "signature_version": "v1",
        "deprecated": false,
        "id": "CVE-2023-53532-c00bf535",
        "signature_type": "Function",
        "digest": {
            "function_hash": "237224599534565344142978960591110020898",
            "length": 632.0
        }
    }
]

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
5.19.0
Fixed
6.1.28
Type
ECOSYSTEM
Events
Introduced
6.2.0
Fixed
6.2.15
Type
ECOSYSTEM
Events
Introduced
6.3.0
Fixed
6.3.2