Bug 9596 - NULL pointer dereference on drivers/usb/misc/auerswald.c
Summary: NULL pointer dereference on drivers/usb/misc/auerswald.c
Status: REJECTED INVALID
Alias: None
Product: Drivers
Classification: Unclassified
Component: USB (show other bugs)
Hardware: All Linux
: P1 low
Assignee: Greg Kroah-Hartman
URL:
Keywords:
Depends on:
Blocks: USB
  Show dependency tree
 
Reported: 2007-12-17 22:27 UTC by Marcio Buss
Modified: 2008-09-24 03:46 UTC (History)
0 users

See Also:
Kernel Version: 2.6.23
Subsystem:
Regression: ---
Bisected commit-id:


Attachments

Description Marcio Buss 2007-12-17 22:27:06 UTC
This is a low severity error, since there's a null pointer dereference
only in case kzalloc fails to allocate memory.

(1) line 762: !bep is true => bep is null
(2) goto bl_fail
(3) line 781: calling auerbuf_free(bep) with bep null, but such function
    does not handle a null argument:

/* free a single auerbuf */
static void auerbuf_free (pauerbuf_t bp)
{
	kfree(bp->bufp);
        ...
Comment 1 Anonymous Emailer 2007-12-17 22:47:04 UTC
Reply-To: akpm@linux-foundation.org

On Mon, 17 Dec 2007 22:27:07 -0800 (PST) bugme-daemon@bugzilla.kernel.org wrote:

> http://bugzilla.kernel.org/show_bug.cgi?id=9596
> 
>            Summary: NULL pointer dereference on drivers/usb/misc/auerswald.c
>            Product: Drivers
>            Version: 2.5
>      KernelVersion: 2.6.23
>           Platform: All
>         OS/Version: Linux
>               Tree: Mainline
>             Status: NEW
>           Severity: low
>           Priority: P1
>          Component: USB
>         AssignedTo: greg@kroah.com
>         ReportedBy: marciobuss@gmail.com
> 
> 
> This is a low severity error, since there's a null pointer dereference
> only in case kzalloc fails to allocate memory.
> 
> (1) line 762: !bep is true => bep is null
> (2) goto bl_fail
> (3) line 781: calling auerbuf_free(bep) with bep null, but such function
>     does not handle a null argument:
> 
> /* free a single auerbuf */
> static void auerbuf_free (pauerbuf_t bp)
> {
>         kfree(bp->bufp);
>         ...
> 
> 
> -- 
> Configure bugmail: http://bugzilla.kernel.org/userprefs.cgi?tab=email
> ------- You are receiving this mail because: -------
> You are on the CC list for the bug, or are watching someone who is.

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