вторник

[Bug 2081785] Re: UBSAN: array-index-out-of-bounds in module mt76

This bug was fixed in the package linux-oem-6.8 - 6.8.0-1014.14

---------------
linux-oem-6.8 (6.8.0-1014.14) noble; urgency=medium

* noble/linux-oem-6.8: 6.8.0-1014.14 -proposed tracker (LP: #2082105)

* [SRU] Fix AST DP output after resume (LP: #2083022)
- drm/ast: Inline drm_simple_encoder_init()
- drm/ast: Implement atomic enable/disable for encoders
- drm/ast: Program mode for AST DP in atomic_mode_set
- drm/ast: Move mode-setting code into mode_set_nofb CRTC helper
- drm/ast: Handle primary-plane format setup in atomic_update
- drm/ast: Remove gamma LUT updates from DPMS code
- drm/ast: Only set VGA SCREEN_DISABLE bit in CRTC code
- drm/ast: Inline ast_crtc_dpms() into callers
- drm/ast: Use drm_atomic_helper_commit_tail() helper
- drm/ast: Fix black screen after resume
- drm/ast: astdp: Wake up during connector status detection

* UBSAN: array-index-out-of-bounds in module mt76 (LP: #2081785)
- wifi: mt76: mt7925: fix a potential array-index-out-of-bounds issue for clc

* Regression: unable to reach low idle states on Tiger Lake (LP: #2072679)
- SAUCE: PCI: ASPM: Allow OS to configure ASPM where BIOS is incapable of
- SAUCE: PCI: vmd: Let OS control ASPM for devices under VMD domain

[ Ubuntu: 6.8.0-47.47 ]

* noble/linux: 6.8.0-47.47 -proposed tracker (LP: #2082118)
* CVE-2024-45016
- netem: fix return value if duplicate enqueue fails

-- Kuan-Ying Lee <kuan-ying.lee@canonical.com> Fri, 04 Oct 2024
13:33:05 +0800

** Changed in: linux-oem-6.8 (Ubuntu Noble)
Status: Fix Committed => Fix Released

** CVE added: https://cve.mitre.org/cgi-bin/cvename.cgi?name=2024-45016

--
You received this bug notification because you are subscribed to linux
in Ubuntu.
Matching subscriptions: Bgg, Bmail, Nb
https://bugs.launchpad.net/bugs/2081785

Title:
UBSAN: array-index-out-of-bounds in module mt76

Status in HWE Next:
New
Status in linux package in Ubuntu:
In Progress
Status in linux-oem-6.11 package in Ubuntu:
Invalid
Status in linux-oem-6.8 package in Ubuntu:
Invalid
Status in linux source package in Noble:
Fix Committed
Status in linux-oem-6.11 source package in Noble:
In Progress
Status in linux-oem-6.8 source package in Noble:
Fix Released
Status in linux source package in Oracular:
In Progress
Status in linux-oem-6.11 source package in Oracular:
Invalid
Status in linux-oem-6.8 source package in Oracular:
Invalid

Bug description:
[SRU Justification]

BugLink: https://bugs.launchpad.net/bugs/2081785

[Impact]

UBSAN warnings in dmesg:
```
UBSAN: array-index-out-of-bounds in /home/kernel/COD/linux/drivers/net/wireless/mediatek/mt76/mac80211.c:1532:34
index 3 is out of range for type 'mt76_phy *[3]'
```

[Fix]

Proposed fix commit
https://github.com/torvalds/linux/commit/9679ca7326e52282cc923c4d71d81c999cb6cd55
("wifi: mt76: mt7925: fix a potential array-index-out-of-bounds issue
for clc"), which fixes commit
https://github.com/torvalds/linux/commit/c948b5da6bbec742b433138e3e3f9537a85af2e5
("wifi: mt76: mt7925: add Mediatek Wi-Fi7 driver for mt7925 chips")
landed in v6.7.

[Test Case]

UBSAN warning should go away.

[Where problems could occur]

No. This bails out early when error occurs.

[Other Info]

While the affected commit was first introduced in v6.7, nominating all
kernels since then: unstable, oracular, oem-6.11, noble, and oem-6.8.

========== original bug description ==========

[ 33.399506] UBSAN: array-index-out-of-bounds in /home/kernel/COD/linux/drivers/net/wireless/mediatek/mt76/mac80211.c:1532:34
[ 33.399517] index 3 is out of range for type 'mt76_phy *[3]'
[ 33.399523] CPU: 0 UID: 0 PID: 1153 Comm: NetworkManager Not tainted 6.11.0-061100rc7-generic #202409082235
[ 33.399528] Hardware name: HP HP ZBook Ultra 14 inch G1a Mobile Workstation PC/8D01, BIOS X89 Ver. 89.17.22 09/11/2024
[ 33.399532] Call Trace:
[ 33.399537] <TASK>
[ 33.399546] show_stack+0x49/0x60
[ 33.399556] dump_stack_lvl+0x5f/0x90
[ 33.399573] dump_stack+0x10/0x18
[ 33.399576] ubsan_epilogue+0x9/0x40
[ 33.399581] __ubsan_handle_out_of_bounds.cold+0x44/0x49
[ 33.399584] mt76_wcid_cleanup+0x269/0x280 [mt76]
[ 33.399603] ? mt76_connac_mcu_uni_add_dev+0x15a/0x200 [mt76_connac_lib]
[ 33.399620] mt792x_mac_link_bss_remove+0x136/0x190 [mt792x_lib]
[ 33.399627] mt792x_remove_interface+0x7f/0xd0 [mt792x_lib]
[ 33.399633] drv_remove_interface+0xf1/0x1b0 [mac80211]
[ 33.399686] ieee80211_do_stop+0x5c0/0x990 [mac80211]
[ 33.399727] ? synchronize_rcu_expedited+0x1f4/0x220
[ 33.399733] ieee80211_stop+0x5c/0x1c0 [mac80211]
[ 33.399765] __dev_close_many+0xae/0x140
[ 33.399768] __dev_change_flags+0xe6/0x230
[ 33.399773] dev_change_flags+0x27/0x80
[ 33.399775] do_setlink+0x39e/0xd90
[ 33.399780] ? genl_family_rcv_msg_doit+0x11c/0x160
[ 33.399785] ? __nla_validate_parse+0x49/0x1b0
[ 33.399790] ? inode_sub_bytes+0x72/0x90
[ 33.399797] __rtnl_newlink+0x5c8/0x760
[ 33.399802] rtnl_newlink+0x77/0xa0
[ 33.399805] rtnetlink_rcv_msg+0x160/0x460
[ 33.399808] ? __legitimize_path+0x30/0x80
[ 33.399812] ? __pfx_rtnetlink_rcv_msg+0x10/0x10
[ 33.399815] netlink_rcv_skb+0x52/0x100
[ 33.399818] rtnetlink_rcv+0x15/0x30
[ 33.399820] netlink_unicast+0x245/0x390
[ 33.399823] netlink_sendmsg+0x214/0x460
[ 33.399826] ____sys_sendmsg+0x3b1/0x3f0
[ 33.399830] ___sys_sendmsg+0x9a/0xf0
[ 33.399834] __sys_sendmsg+0xe5/0x120
[ 33.399839] __x64_sys_sendmsg+0x1d/0x30
[ 33.399842] x64_sys_call+0x7da/0x22b0
[ 33.399848] do_syscall_64+0x7e/0x170
[ 33.399851] ? syscall_exit_to_user_mode+0x4e/0x250
[ 33.399855] ? do_syscall_64+0x8a/0x170
[ 33.399858] ? syscall_exit_to_user_mode+0x4e/0x250
[ 33.399860] ? do_syscall_64+0x8a/0x170
[ 33.399863] ? do_epoll_wait+0xa8/0x100
[ 33.399867] ? __x64_sys_epoll_wait+0x6d/0x110
[ 33.399870] ? __task_pid_nr_ns+0x6c/0xc0
[ 33.399875] ? syscall_exit_to_user_mode+0x4e/0x250
[ 33.399878] ? do_syscall_64+0x8a/0x170
[ 33.399879] ? irqentry_exit+0x43/0x50
[ 33.399882] ? sysvec_apic_timer_interrupt+0x57/0xc0
[ 33.399885] entry_SYSCALL_64_after_hwframe+0x76/0x7e
[ 33.399889] RIP: 0033:0x7317e512c03b
[ 33.399894] Code: 48 89 e5 48 83 ec 20 89 55 ec 48 89 75 f0 89 7d f8 e8 19 c5 f6 ff 8b 55 ec 48 8b 75 f0 41 89 c0 8b 7d f8 b8 2e 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 2d 44 89 c7 48 89 45 f8 e8 71 c5 f6 ff 48 8b
[ 33.399897] RSP: 002b:00007ffd8d677b20 EFLAGS: 00000293 ORIG_RAX: 000000000000002e
[ 33.399902] RAX: ffffffffffffffda RBX: 000055c29094d8e0 RCX: 00007317e512c03b
[ 33.399904] RDX: 0000000000000000 RSI: 00007ffd8d677b60 RDI: 000000000000000d
[ 33.399906] RBP: 00007ffd8d677b40 R08: 0000000000000000 R09: 0000000000000000
[ 33.399907] R10: 0000000000000000 R11: 0000000000000293 R12: 000000000000001c
[ 33.399908] R13: 000055c29094d8e0 R14: 0000000000000001 R15: 0000000000000000
[ 33.399910] </TASK>
[ 33.399912] ---[ end trace ]---

Proposed fix in
https://github.com/torvalds/linux/commit/9679ca7326e52282cc923c4d71d81c999cb6cd55
("wifi: mt76: mt7925: fix a potential array-index-out-of-bounds issue
for clc"), which fixes
https://github.com/torvalds/linux/commit/c948b5da6bbec742b433138e3e3f9537a85af2e5
("wifi: mt76: mt7925: add Mediatek Wi-Fi7 driver for mt7925 chips")
landed in v6.7.

To manage notifications about this bug go to:
https://bugs.launchpad.net/hwe-next/+bug/2081785/+subscriptions

Комментариев нет:

Отправить комментарий