CVE-2024-47715

Source
https://nvd.nist.gov/vuln/detail/CVE-2024-47715
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-47715.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2024-47715
Downstream
Related
Published
2024-10-21T11:53:46Z
Modified
2025-10-15T16:04:38.760801Z
Summary
wifi: mt76: mt7915: fix oops on non-dbdc mt7986
Details

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

wifi: mt76: mt7915: fix oops on non-dbdc mt7986

mt7915bandconfig() sets bandidx = 1 on the main phy for mt7986 with MT7975ONEADIE or MT7976ONE_ADIE.

Commit 0335c034e726 ("wifi: mt76: fix race condition related to checking tx queue fill status") introduced a dereference of the phys array indirectly indexed by bandidx via wcid->phyidx in mt76wcidcleanup(). This caused the following Oops on affected mt7986 devices:

Unable to handle kernel read from unreadable memory at virtual address 0000000000000024 Mem abort info: ESR = 0x0000000096000005 EC = 0x25: DABT (current EL), IL = 32 bits SET = 0, FnV = 0 EA = 0, S1PTW = 0 FSC = 0x05: level 1 translation fault Data abort info: ISV = 0, ISS = 0x00000005 CM = 0, WnR = 0 user pgtable: 4k pages, 39-bit VAs, pgdp=0000000042545000 [0000000000000024] pgd=0000000000000000, p4d=0000000000000000, pud=0000000000000000 Internal error: Oops: 0000000096000005 [#1] SMP Modules linked in: ... mt7915e mt76connaclib mt76 mac80211 cfg80211 ... CPU: 2 PID: 1631 Comm: hostapd Not tainted 5.15.150 #0 Hardware name: ZyXEL EX5700 (Telenor) (DT) pstate: 80400005 (Nzcv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : mt76wcidcleanup+0x84/0x22c [mt76] lr : mt76wcidcleanup+0x64/0x22c [mt76] sp : ffffffc00a803700 x29: ffffffc00a803700 x28: ffffff80008f7300 x27: ffffff80003f3c00 x26: ffffff80000a7880 x25: ffffffc008c26e00 x24: 0000000000000001 x23: ffffffc000a68114 x22: 0000000000000000 x21: ffffff8004172cc8 x20: ffffffc00a803748 x19: ffffff8004152020 x18: 0000000000000000 x17: 00000000000017c0 x16: ffffffc008ef5000 x15: 0000000000000be0 x14: ffffff8004172e28 x13: ffffff8004172e28 x12: 0000000000000000 x11: 0000000000000000 x10: ffffff8004172e30 x9 : ffffff8004172e28 x8 : 0000000000000000 x7 : ffffff8004156020 x6 : 0000000000000000 x5 : 0000000000000031 x4 : 0000000000000000 x3 : 0000000000000001 x2 : 0000000000000000 x1 : ffffff80008f7300 x0 : 0000000000000024 Call trace: mt76wcidcleanup+0x84/0x22c [mt76] _mt76staremove+0x70/0xbc [mt76] mt76stastate+0x8c/0x1a4 [mt76] mt7915eepromgetpowerdelta+0x11e4/0x23a0 [mt7915e] drvstastate+0x144/0x274 [mac80211] stainfomovestate+0x1cc/0x2a4 [mac80211] stasetsinfo+0xaf8/0xc24 [mac80211] stainfodestroyaddrbss+0x4c/0x6c [mac80211]

ieee80211colorchangefinish+0x1c08/0x1e70 [mac80211] cfg80211checkstationchange+0x1360/0x4710 [cfg80211] genlfamilyrcvmsgdoit+0xb4/0x110 genlrcvmsg+0xd0/0x1bc netlinkrcvskb+0x58/0x120 genlrcv+0x34/0x50 netlinkunicast+0x1f0/0x2ec netlinksendmsg+0x198/0x3d0 syssendmsg+0x1b0/0x210 syssendmsg+0x80/0xf0 _syssendmsg+0x44/0xa0 _arm64syssendmsg+0x20/0x30 invokesyscall.constprop.0+0x4c/0xe0 doel0svc+0x40/0xd0 el0svc+0x14/0x4c el0t64synchandler+0x100/0x110 el0t64sync+0x15c/0x160 Code: d2800002 910092c0 52800023 f9800011 (885f7c01) ---[ end trace 7e42dd9a39ed2281 ]---

Fix by using mt76devphy() which will map band_idx to the correct phy for all hardware combinations.

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
d2defcddfe90b3be0cfccc2482495ab1fb759586
Fixed
818dd118f4a997f8b4fe9c010b22402d410a2424
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
0335c034e7265d36d956e806f33202c94a8a9860
Fixed
7c128f3ff0be5802aef66f332e4bba6afe98735e
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
0335c034e7265d36d956e806f33202c94a8a9860
Fixed
a94d2bd111b39f0c2c7fcbfbf8276ab98c3b8353
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
0335c034e7265d36d956e806f33202c94a8a9860
Fixed
862bf7cbd772c2bad570ef0c5b5556a1330656dd

Affected versions

v6.*

v6.10
v6.10-rc1
v6.10-rc2
v6.10-rc3
v6.10-rc4
v6.10-rc5
v6.10-rc6
v6.10-rc7
v6.10.1
v6.10.10
v6.10.11
v6.10.12
v6.10.2
v6.10.3
v6.10.4
v6.10.5
v6.10.6
v6.10.7
v6.10.8
v6.10.9
v6.11
v6.11-rc1
v6.11-rc2
v6.11-rc3
v6.11-rc4
v6.11-rc5
v6.11-rc6
v6.11-rc7
v6.11.1
v6.5
v6.6
v6.6-rc1
v6.6-rc2
v6.6-rc3
v6.6-rc4
v6.6-rc5
v6.6-rc6
v6.6-rc7
v6.6.48
v6.6.49
v6.6.50
v6.6.51
v6.6.52
v6.6.53
v6.7
v6.7-rc1
v6.7-rc2
v6.7-rc3
v6.7-rc4
v6.7-rc5
v6.7-rc6
v6.7-rc7
v6.7-rc8
v6.8
v6.8-rc1
v6.8-rc2
v6.8-rc3
v6.8-rc4
v6.8-rc5
v6.8-rc6
v6.8-rc7
v6.9
v6.9-rc1
v6.9-rc2
v6.9-rc3
v6.9-rc4
v6.9-rc5
v6.9-rc6
v6.9-rc7

Database specific

{
    "vanir_signatures": [
        {
            "digest": {
                "length": 657.0,
                "function_hash": "289469593294918506200943958959997523098"
            },
            "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@818dd118f4a997f8b4fe9c010b22402d410a2424",
            "signature_type": "Function",
            "target": {
                "function": "mt76_wcid_cleanup",
                "file": "drivers/net/wireless/mediatek/mt76/mac80211.c"
            },
            "deprecated": false,
            "signature_version": "v1",
            "id": "CVE-2024-47715-047e5344"
        },
        {
            "digest": {
                "length": 657.0,
                "function_hash": "289469593294918506200943958959997523098"
            },
            "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@862bf7cbd772c2bad570ef0c5b5556a1330656dd",
            "signature_type": "Function",
            "target": {
                "function": "mt76_wcid_cleanup",
                "file": "drivers/net/wireless/mediatek/mt76/mac80211.c"
            },
            "deprecated": false,
            "signature_version": "v1",
            "id": "CVE-2024-47715-06dcf31f"
        },
        {
            "digest": {
                "line_hashes": [
                    "63906852003805868182225850314425812315",
                    "137255081653370380395610532879591746870",
                    "314655258944974763284833336011549120896",
                    "38466362650671288147680805010078868424"
                ],
                "threshold": 0.9
            },
            "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@862bf7cbd772c2bad570ef0c5b5556a1330656dd",
            "signature_type": "Line",
            "target": {
                "file": "drivers/net/wireless/mediatek/mt76/mac80211.c"
            },
            "deprecated": false,
            "signature_version": "v1",
            "id": "CVE-2024-47715-07652979"
        },
        {
            "digest": {
                "line_hashes": [
                    "63906852003805868182225850314425812315",
                    "137255081653370380395610532879591746870",
                    "314655258944974763284833336011549120896",
                    "38466362650671288147680805010078868424"
                ],
                "threshold": 0.9
            },
            "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@818dd118f4a997f8b4fe9c010b22402d410a2424",
            "signature_type": "Line",
            "target": {
                "file": "drivers/net/wireless/mediatek/mt76/mac80211.c"
            },
            "deprecated": false,
            "signature_version": "v1",
            "id": "CVE-2024-47715-28948bdc"
        },
        {
            "digest": {
                "line_hashes": [
                    "63906852003805868182225850314425812315",
                    "137255081653370380395610532879591746870",
                    "314655258944974763284833336011549120896",
                    "38466362650671288147680805010078868424"
                ],
                "threshold": 0.9
            },
            "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@7c128f3ff0be5802aef66f332e4bba6afe98735e",
            "signature_type": "Line",
            "target": {
                "file": "drivers/net/wireless/mediatek/mt76/mac80211.c"
            },
            "deprecated": false,
            "signature_version": "v1",
            "id": "CVE-2024-47715-d3aae3f1"
        },
        {
            "digest": {
                "length": 657.0,
                "function_hash": "289469593294918506200943958959997523098"
            },
            "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@7c128f3ff0be5802aef66f332e4bba6afe98735e",
            "signature_type": "Function",
            "target": {
                "function": "mt76_wcid_cleanup",
                "file": "drivers/net/wireless/mediatek/mt76/mac80211.c"
            },
            "deprecated": false,
            "signature_version": "v1",
            "id": "CVE-2024-47715-eac94077"
        }
    ]
}

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
6.6.54
Type
ECOSYSTEM
Events
Introduced
6.7.0
Fixed
6.10.13
Type
ECOSYSTEM
Events
Introduced
6.7.0
Fixed
6.11.2