Skip to contentSkip to conversation

usb-audio validation fixes [3.0, 3.2]

DISCUSSION Ben Hutchings 2 participants 4 messages May 28, 2013 – Jun 17, 2013

lore
Share & tools
lore
#0 lore raw

It looks these fixes are suitable for inclusion in the 3.0.y and 3.2.y stable branches:

commit 4fa0e81b83503900be277e6273a79651b375e288

Author: Xi Wang <[email protected]>
Date:   Sun Jan 8 09:02:52 2012 -0500

ALSA: usb-audio: fix possible hang and overflow in parse_uac2_sample_rate_range()

commit 8866f405efd4171f9d9c91901d2dd02f01bacb60

Author: Xi Wang <[email protected]>
Date:   Tue Feb 14 05:18:48 2012 -0500

ALSA: usb-audio: avoid integer overflow in create_fixed_stream_quirk()

Do you agree?

Ben.

Signature · 2 lines
Ben Hutchings
If at first you don't succeed, you're doing about average.
#1 lore raw

At Tue, 28 May 2013 02:27:49 +0100,

Quoted 10 lines · Ben Hutchings

It looks these fixes are suitable for inclusion in the 3.0.y and 3.2.y stable branches:

commit 4fa0e81b83503900be277e6273a79651b375e288

Author: Xi Wang <[email protected]>
Date:   Sun Jan 8 09:02:52 2012 -0500

ALSA: usb-audio: fix possible hang and overflow in parse_uac2_sample_rate_range()

Quoted 7 lines

commit 8866f405efd4171f9d9c91901d2dd02f01bacb60

Author: Xi Wang <[email protected]>
Date:   Tue Feb 14 05:18:48 2012 -0500

ALSA: usb-audio: avoid integer overflow in create_fixed_stream_quirk()

Do you agree?

If it's applicable to old kernels, yes, it's worth.
I didn't mark it simply because the patch hasn't been tested with the actual hardware. But the change itself is simple, and should be safe to apply.

thanks,

Takashi

#2 lore raw
Quoted 16 lines · Takashi Iwai

At Tue, 28 May 2013 02:27:49 +0100,

Quoted 14 lines · Ben Hutchings

It looks these fixes are suitable for inclusion in the 3.0.y and 3.2.y stable branches:

commit 4fa0e81b83503900be277e6273a79651b375e288

Author: Xi Wang <[email protected]>
Date:   Sun Jan 8 09:02:52 2012 -0500

ALSA: usb-audio: fix possible hang and overflow in parse_uac2_sample_rate_range()

commit 8866f405efd4171f9d9c91901d2dd02f01bacb60

Author: Xi Wang <[email protected]>
Date:   Tue Feb 14 05:18:48 2012 -0500
Quoted 7 lines
Quoted 3 lines

ALSA: usb-audio: avoid integer overflow in create_fixed_stream_quirk()

Do you agree?

If it's applicable to old kernels, yes, it's worth.
I didn't mark it simply because the patch hasn't been tested with the actual hardware.

So no-one's tried fuzz-testing? This is just based on code inspection or static analysis?

Quoted 1 line

But the change itself is simple, and should be safe to apply.

Right, I've queued these up for 3.2.

Ben.

Signature · 2 lines
Ben Hutchings
friends: People who know you well, but like you anyway.
#3 lore raw

At Thu, 13 Jun 2013 02:30:39 +0100,

Quoted 20 lines · Ben Hutchings
Quoted 18 lines · Takashi Iwai

At Tue, 28 May 2013 02:27:49 +0100,

Quoted 16 lines · Ben Hutchings

It looks these fixes are suitable for inclusion in the 3.0.y and 3.2.y stable branches:

commit 4fa0e81b83503900be277e6273a79651b375e288

Author: Xi Wang <[email protected]>
Date:   Sun Jan 8 09:02:52 2012 -0500

ALSA: usb-audio: fix possible hang and overflow in parse_uac2_sample_rate_range()

commit 8866f405efd4171f9d9c91901d2dd02f01bacb60

Author: Xi Wang <[email protected]>
Date:   Tue Feb 14 05:18:48 2012 -0500

ALSA: usb-audio: avoid integer overflow in create_fixed_stream_quirk()

Quoted 8 lines
Quoted 5 lines
Quoted 1 line

Do you agree?

If it's applicable to old kernels, yes, it's worth.
I didn't mark it simply because the patch hasn't been tested with the actual hardware.

So no-one's tried fuzz-testing? This is just based on code inspection or static analysis?

The latter case. For testing this, you'll need the modified USB descriptor, thus some modified hardware, USB gadget or VM is required.

Takashi

Quoted 9 lines
Quoted 1 line

But the change itself is simple, and should be safe to apply.

Right, I've queued these up for 3.2.

Ben.

Signature · 2 lines
Ben Hutchings
friends: People who know you well, but like you anyway.