Bug 252
Summary: | Possible out of bounds bug in sb_mixer.c from Stanford Checker | ||
---|---|---|---|
Product: | Drivers | Reporter: | Hanna Linder (hannal) |
Component: | Sound(OSS) | Assignee: | Muli Ben-Yehuda (mulix) |
Status: | CLOSED CODE_FIX | ||
Severity: | low | CC: | mulix |
Priority: | P2 | ||
Hardware: | i386 | ||
OS: | Linux | ||
Kernel Version: | Subsystem: | ||
Regression: | --- | Bisected commit-id: | |
Bug Depends on: | |||
Bug Blocks: | 253, 254 | ||
Attachments: |
simple bounds check
bounds checks in sb_mixer.c (bugs 252-254) add iomap_sz and use it to test dev against |
Description
Hanna Linder
2003-01-03 16:47:32 UTC
Created attachment 69 [details]
simple bounds check
Comment on attachment 69 [details]
simple bounds check
sorry, wrong bug.
Created attachment 70 [details]
bounds checks in sb_mixer.c (bugs 252-254)
this should take care of 253 and 254 as well
Does anyone know the status of this bug? Has the patch been verified? Not sure if this is the right fix or not. It is currently not included in the 2.5.70 code base. Doesn't appear to be included in 2.6.5-rc2, either. FWIW, there was some discussion on lkml about it, e.g. http://marc.theaimsgroup.com/?l=linux-kernel&m=104260148409541&w=2. Doesn't appear to have been included, though. I'll try to push it to akpm again. Created attachment 2373 [details]
add iomap_sz and use it to test dev against
This patch fixes the issue, taking into account that dev is used to dereference
a variable sized array (devc->iomap), by storing the array's length in
devc->iomap_sz and checking against that.
patch is now included in akpm's 2.6.5-rc2-mm1. |