Bug 2333877 - UBSAN: array-index-out-of-bounds in sound/pci/ctxfi/ctamixer.c:347:48
Summary: UBSAN: array-index-out-of-bounds in sound/pci/ctxfi/ctamixer.c:347:48
Keywords:
Status: CLOSED EOL
Alias: None
Product: Fedora
Classification: Fedora
Component: kernel
Version: 41
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Kernel Maintainer List
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2024-12-23 19:38 UTC by François Cami
Modified: 2025-12-16 18:16 UTC (History)
16 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2025-12-16 18:16:06 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
dmesg.txt (123.76 KB, text/plain)
2024-12-23 19:38 UTC, François Cami
no flags Details

Description François Cami 2024-12-23 19:38:03 UTC
1. Please describe the problem:

[   45.937775] snd_hda_intel 0000:0b:00.1: bound 0000:0b:00.0 (ops amdgpu_dm_audio_component_bind_ops [amdgpu])
[   45.940075] amd_atl: AMD Address Translation Library initialized
[   45.942131] input: HDA ATI HDMI HDMI/DP,pcm=3 as /devices/pci0000:00/0000:00:03.1/0000:09:00.0/0000:0a:00.0/0000:0b:00.1/sound/card1/input9
[   45.949952] input: HDA ATI HDMI HDMI/DP,pcm=7 as /devices/pci0000:00/0000:00:03.1/0000:09:00.0/0000:0a:00.0/0000:0b:00.1/sound/card1/input10
[   45.950067] input: HDA ATI HDMI HDMI/DP,pcm=8 as /devices/pci0000:00/0000:00:03.1/0000:09:00.0/0000:0a:00.0/0000:0b:00.1/sound/card1/input11
[   45.952673] input: HDA ATI HDMI HDMI/DP,pcm=9 as /devices/pci0000:00/0000:00:03.1/0000:09:00.0/0000:0a:00.0/0000:0b:00.1/sound/card1/input12
[   45.952738] input: HDA ATI HDMI HDMI/DP,pcm=10 as /devices/pci0000:00/0000:00:03.1/0000:09:00.0/0000:0a:00.0/0000:0b:00.1/sound/card1/input13
[   45.952795] input: HDA ATI HDMI HDMI/DP,pcm=11 as /devices/pci0000:00/0000:00:03.1/0000:09:00.0/0000:0a:00.0/0000:0b:00.1/sound/card1/input14
[   45.982409] snd_hda_codec_realtek hdaudioC2D0: autoconfig for ALC1220: line_outs=3 (0x14/0x15/0x16/0x0/0x0) type:line
[   45.982413] snd_hda_codec_realtek hdaudioC2D0:    speaker_outs=0 (0x0/0x0/0x0/0x0/0x0)
[   45.982416] snd_hda_codec_realtek hdaudioC2D0:    hp_outs=1 (0x1b/0x0/0x0/0x0/0x0)
[   45.982418] snd_hda_codec_realtek hdaudioC2D0:    mono: mono_out=0x0
[   45.982420] snd_hda_codec_realtek hdaudioC2D0:    dig-out=0x1e/0x0
[   45.982421] snd_hda_codec_realtek hdaudioC2D0:    inputs:
[   45.982423] snd_hda_codec_realtek hdaudioC2D0:      Front Mic=0x19
[   45.982425] snd_hda_codec_realtek hdaudioC2D0:      Rear Mic=0x18
[   45.982427] snd_hda_codec_realtek hdaudioC2D0:      Rear Mic=0x17
[   45.982428] snd_hda_codec_realtek hdaudioC2D0:      Line=0x1a
[   46.017741] input: HD-Audio Generic Front Mic as /devices/pci0000:00/0000:00:08.1/0000:0d:00.4/sound/card2/input15
[   46.019057] input: HD-Audio Generic Rear Mic as /devices/pci0000:00/0000:00:08.1/0000:0d:00.4/sound/card2/input16
[   46.020687] input: HD-Audio Generic Rear Mic as /devices/pci0000:00/0000:00:08.1/0000:0d:00.4/sound/card2/input17
[   46.020765] input: HD-Audio Generic Line as /devices/pci0000:00/0000:00:08.1/0000:0d:00.4/sound/card2/input18
[   46.020843] input: HD-Audio Generic Line Out Front as /devices/pci0000:00/0000:00:08.1/0000:0d:00.4/sound/card2/input19
[   46.020928] input: HD-Audio Generic Line Out Surround as /devices/pci0000:00/0000:00:08.1/0000:0d:00.4/sound/card2/input20
[   46.021042] input: HD-Audio Generic Line Out CLFE as /devices/pci0000:00/0000:00:08.1/0000:0d:00.4/sound/card2/input21
[   46.021109] input: HD-Audio Generic Front Headphone as /devices/pci0000:00/0000:00:08.1/0000:0d:00.4/sound/card2/input22
[   46.146765] ------------[ cut here ]------------
[   46.147870] UBSAN: array-index-out-of-bounds in sound/pci/ctxfi/ctamixer.c:347:48
[   46.148777] index 8 is out of range for type 'unsigned char [8]'
[   46.149650] CPU: 10 UID: 0 PID: 2203 Comm: (udev-worker) Not tainted 6.12.6-200.fc41.x86_64 #1
[   46.149653] Hardware name: ASUS System Product Name/ROG STRIX B550-E GAMING, BIOS 3611 09/29/2024
[   46.149655] Call Trace:
[   46.149656]  <TASK>
[   46.149658]  dump_stack_lvl+0x5d/0x80
[   46.149663]  ? __pfx_amixer_set_x+0x10/0x10 [snd_ctxfi]
[   46.155002]  ubsan_epilogue+0x5/0x30
[   46.155006]  __ubsan_handle_out_of_bounds.cold+0x46/0x4b
[   46.156883]  sum_output_slot+0x3f/0x50 [snd_ctxfi]
[   46.156894]  amixer_set_input+0x4e/0x80 [snd_ctxfi]
[   46.156900]  amixer_setup+0x1b/0x50 [snd_ctxfi]
[   46.156906]  ct_mixer_create+0x238/0x620 [snd_ctxfi]
[   46.156914]  ct_atc_create+0x3f2/0x560 [snd_ctxfi]
[   46.156922]  ct_card_probe+0x109/0x2a0 [snd_ctxfi]
[   46.156929]  local_pci_probe+0x45/0x90
[   46.156933]  pci_device_probe+0x23f/0x290
[   46.156937]  really_probe+0xde/0x340
[   46.156941]  ? pm_runtime_barrier+0x54/0x90
[   46.156944]  ? __pfx___driver_attach+0x10/0x10
[   46.156946]  __driver_probe_device+0x78/0x110
[   46.156949]  driver_probe_device+0x1f/0xa0
[   46.156951]  __driver_attach+0xba/0x1c0
[   46.156954]  bus_for_each_dev+0x8f/0xe0
[   46.156957]  bus_add_driver+0x142/0x220
[   46.156959]  driver_register+0x72/0xd0
[   46.156961]  ? __pfx_ct_driver_init+0x10/0x10 [snd_ctxfi]
[   46.156968]  do_one_initcall+0x5b/0x310
[   46.156973]  do_init_module+0x90/0x260
[   46.156976]  __do_sys_init_module+0x17a/0x1b0
[   46.156981]  do_syscall_64+0x82/0x160
[   46.156986]  ? srso_alias_return_thunk+0x5/0xfbef5
[   46.156989]  ? xfs_iunlock+0xca/0x100 [xfs]
[   46.157128]  ? srso_alias_return_thunk+0x5/0xfbef5
[   46.157130]  ? xfs_file_buffered_read+0xb4/0xd0 [xfs]
[   46.157220]  ? srso_alias_return_thunk+0x5/0xfbef5
[   46.157222]  ? xfs_file_read_iter+0xa8/0x190 [xfs]
[   46.157309]  ? srso_alias_return_thunk+0x5/0xfbef5
[   46.157311]  ? srso_alias_return_thunk+0x5/0xfbef5
[   46.157313]  ? vfs_read+0x29c/0x370
[   46.157317]  ? srso_alias_return_thunk+0x5/0xfbef5
[   46.157319]  ? syscall_exit_to_user_mode_prepare+0x149/0x170
[   46.157321]  ? srso_alias_return_thunk+0x5/0xfbef5
[   46.157323]  ? syscall_exit_to_user_mode+0x10/0x210
[   46.157325]  ? srso_alias_return_thunk+0x5/0xfbef5
[   46.157327]  ? do_syscall_64+0x8e/0x160
[   46.157329]  ? srso_alias_return_thunk+0x5/0xfbef5
[   46.157330]  ? __count_memcg_events+0x77/0x130
[   46.157333]  ? srso_alias_return_thunk+0x5/0xfbef5
[   46.157335]  ? count_memcg_events.constprop.0+0x1a/0x30
[   46.157337]  ? srso_alias_return_thunk+0x5/0xfbef5
[   46.157339]  ? handle_mm_fault+0x21b/0x330
[   46.157342]  ? srso_alias_return_thunk+0x5/0xfbef5
[   46.157343]  ? do_user_addr_fault+0x55a/0x7b0
[   46.157347]  ? srso_alias_return_thunk+0x5/0xfbef5
[   46.157348]  ? exc_page_fault+0x7e/0x180
[   46.157350]  entry_SYSCALL_64_after_hwframe+0x76/0x7e
[   46.157354] RIP: 0033:0x7f247870228e
[   46.157364] Code: 48 8b 0d 85 3b 0f 00 f7 d8 64 89 01 48 83 c8 ff c3 66 2e 0f 1f 84 00 00 00 00 00 90 f3 0f 1e fa 49 89 ca b8 af 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d 52 3b 0f 00 f7 d8 64 89 01 48
[   46.157365] RSP: 002b:00007ffd8eb9d3c8 EFLAGS: 00000246 ORIG_RAX: 00000000000000af
[   46.157368] RAX: ffffffffffffffda RBX: 0000562a8de12fe0 RCX: 00007f247870228e
[   46.157369] RDX: 00007f247850b3bd RSI: 000000000007a086 RDI: 0000562a8de8f020
[   46.157370] RBP: 00007ffd8eb9d480 R08: 0000562a8d5ef010 R09: 0000000000000007
[   46.157371] R10: 0000000000000003 R11: 0000000000000246 R12: 00007f247850b3bd
[   46.157372] R13: 0000000000020000 R14: 0000562a8d7711c0 R15: 0000562a8de15e70
[   46.157375]  </TASK>
[   46.157379] ---[ end trace ]---
[   46.175725] snd_ctxfi 0000:06:00.0: Use xfi-native timer


2. What is the Version-Release number of the kernel:

kernel-6.12.6-200.fc41.x86_64

3. Did it work previously in Fedora? If so, what kernel version did the issue
   *first* appear?  Old kernels are available for download at
   https://koji.fedoraproject.org/koji/packageinfo?packageID=8 :

Not sure (new system build)

4. Can you reproduce this issue? If so, please provide the steps to reproduce
   the issue below:

I think this needs:
06:00.0 Audio device: Creative Labs EMU20k2 [Sound Blaster X-Fi Titanium Series] (rev 03)

Aka Titanium HD


5. Does this problem occur with the latest Rawhide kernel? To install the
   Rawhide kernel, run ``sudo dnf install fedora-repos-rawhide`` followed by
   ``sudo dnf update --enablerepo=rawhide kernel``:

Not tried

6. Are you running any modules that not shipped with directly Fedora's kernel?:

No

7. Please attach the kernel logs. You can get the complete kernel log
   for a boot with ``journalctl --no-hostname -k > dmesg.txt``. If the
   issue occurred on a previous boot, use the journalctl ``-b`` flag.

Reproducible: Always

Comment 1 François Cami 2024-12-23 19:38:51 UTC
Created attachment 2063693 [details]
dmesg.txt

Comment 2 Serhii Melnyk 2025-03-26 15:58:03 UTC
*I'm sorry for my bad English.

As a owner of Creative Labs EMU20k2 [Sound Blaster X-Fi Titanium Series] (rev 03) (this is not a HD version - SB0880) i see similar error in DMESG as topic starter. First of all what this bug possibly brings as i noticed: while audio card works almost as intended - standard (Fedora 40 XFCE4 pipewire) volume controls work strange in a way that minimum volume is too loud. Terminal console "alsamixer" volume controls  work flawlessly. I write this here just in case (it's kernel module snd_ctxfi anyway). I could provide extensive logs if needed as i have spare time. As for now i will try rawhide kernel.

P.S. Thank you for reading this.
P.P.S. Have a very safe day! :)

Comment 3 Serhii Melnyk 2025-03-27 15:32:27 UTC
(In reply to Serhii Melnyk from comment #2)
> *I'm sorry for my bad English.
> 
> As a owner of Creative Labs EMU20k2 [Sound Blaster X-Fi Titanium Series]
> (rev 03) (this is not a HD version - SB0880) i see similar error in DMESG as
> topic starter. First of all what this bug possibly brings as i noticed:
> while audio card works almost as intended - standard (Fedora 40 XFCE4
> pipewire) volume controls work strange in a way that minimum volume is too
> loud. Terminal console "alsamixer" volume controls  work flawlessly. I write
> this here just in case (it's kernel module snd_ctxfi anyway). I could
> provide extensive logs if needed as i have spare time. As for now i will try
> rawhide kernel.
> 
> P.S. Thank you for reading this.
> P.P.S. Have a very safe day! :)

Today I have tested live image of Fedora rawhide (Fedora-Xfce-Live-Rawhide-20250326.n.0.x86_64).
With same DMESG output.

Comment 4 Adam Williamson 2025-12-02 02:02:10 UTC
This message is a reminder that Fedora Linux 41 is nearing its end of life.
Fedora will stop maintaining and issuing updates for Fedora Linux 41 on 2025-12-15.
It is Fedora's policy to close all bug reports from releases that are no longer
maintained. At that time this bug will be closed as EOL if it remains open with a
'version' of '41'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, change the 'version' 
to a later Fedora Linux version. Note that the version field may be hidden.
Click the "Show advanced fields" button if you do not see it.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora Linux 41 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora Linux, you are encouraged to change the 'version' to a later version
prior to this bug being closed.

Comment 5 Samyak Jain (RedHat) 2025-12-16 18:16:06 UTC
Fedora Linux 41 entered end-of-life (EOL) status on 2025-12-15.

Fedora Linux 41 is no longer maintained, which means that it
will not receive any further security or bug fix updates. As a result we
are closing this bug.

If you can reproduce this bug against a currently maintained version of Fedora Linux
please feel free to reopen this bug against that version. Note that the version
field may be hidden. Click the "Show advanced fields" button if you do not see
the version field.

If you are unable to reopen this bug, please file a new report against an
active release.

Thank you for reporting this bug and we are sorry it could not be fixed.


Note You need to log in before you can comment on or make changes to this bug.