Commit 07d158c
committed
ALSA: usb-audio: Fix potential out-of-bound accesses for Extigy and Mbox devices
jira VULN-46737
cve CVE-2024-53197
commit-author Benoît Sevens <[email protected]>
commit b909df1
upstream-diff This kernel doesn't have snd_usb_mbox3_boot_quirk(),
so that change hunk from the upstream commit isn't
necessary.
A bogus device can provide a bNumConfigurations value that exceeds the
initial value used in usb_get_configuration for allocating dev->config.
This can lead to out-of-bounds accesses later, e.g. in
usb_destroy_configuration.
Signed-off-by: Benoît Sevens <[email protected]>
Fixes: 1da177e ("Linux-2.6.12-rc2")
Cc: [email protected]
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Takashi Iwai <[email protected]>
(cherry picked from commit b909df1)
Signed-off-by: Brett Mastbergen <[email protected]>1 parent 49f9d93 commit 07d158c
1 file changed
+14
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
577 | 577 | | |
578 | 578 | | |
579 | 579 | | |
| 580 | + | |
580 | 581 | | |
581 | 582 | | |
582 | 583 | | |
| |||
588 | 589 | | |
589 | 590 | | |
590 | 591 | | |
591 | | - | |
592 | | - | |
| 592 | + | |
593 | 593 | | |
594 | 594 | | |
| 595 | + | |
| 596 | + | |
| 597 | + | |
| 598 | + | |
| 599 | + | |
595 | 600 | | |
596 | 601 | | |
597 | 602 | | |
| |||
925 | 930 | | |
926 | 931 | | |
927 | 932 | | |
| 933 | + | |
928 | 934 | | |
929 | 935 | | |
930 | 936 | | |
| |||
960 | 966 | | |
961 | 967 | | |
962 | 968 | | |
963 | | - | |
964 | | - | |
| 969 | + | |
965 | 970 | | |
966 | 971 | | |
| 972 | + | |
| 973 | + | |
| 974 | + | |
| 975 | + | |
| 976 | + | |
967 | 977 | | |
968 | 978 | | |
969 | 979 | | |
| |||
1010 | 1020 | | |
1011 | 1021 | | |
1012 | 1022 | | |
1013 | | - | |
1014 | 1023 | | |
1015 | 1024 | | |
1016 | 1025 | | |
| |||
0 commit comments