CVE-2010-3080: Double Free

Published Sep 6, 2010
·
Updated

Description of problem: There is a bug in sndseqossopen from sound/core/seq/oss/seqossinit.c. So here's the error path for some setup failure:

error: sndseqosswriteqdelete(dp->writeq); sndseqossreadqdelete(dp->readq); sndseqosssynthcleanup(dp); sndseqossmidicleanup(dp); deleteport(dp); deleteseqqueue(dp->queue); kfree(dp);

This looks okay, but actually, deleteport calls portdelete (eventually... this code is tough to follow) which does a freedevinfo on the owner struct seqossdevinfo, here (around ~269 in seqports.c):

if (port->privatefree) port->privatefree(port->privatedata);

because of this (around ~334 in seqossinit.c):

memset(&callback, 0, sizeof(callback)); callback.owner = THISMODULE; callback.privatedata = dp; callback.eventinput = sndseqosseventinput; callback.privatefree = freedevinfo; port.kernel = &callback;

Which does this:

static void freedevinfo(void private) { struct seqossdevinfo dp = (struct seqossdevinfo )private;

if (dp->timer) sndseqosstimerdelete(dp->timer); if (dp->writeq) sndseqosswriteqdelete(dp->writeq);

if (dp->readq) sndseqossreadqdelete(dp->readq); kfree(dp); }

So.....

deleteport(dp); deleteseqqueue(dp->queue); <= Oops, dereferencing released pointer. kfree(dp); <= Oops, double free.

Acknowledgements:

Red Hat would like to thank Tavis Ormandy for reporting this issue.

Other sources

Double free vulnerability in the sndseqossopen function in sound/core/seq/oss/seqossinit.c in the Linux kernel before 2.6.36-rc4 might allow local users to cause a denial of service or possibly have unspecified other impact via an unsuccessful attempt to open the /dev/sequencer device.

Launchpad

Affected Software

16 affected components
debian/linux-2.6
Linux Linux kernel=2.6.36-rc2
Linux Linux kernel=2.6.36-rc1
Linux Linux kernel=2.6.36-rc3
Linux Linux kernel<2.6.36
Linux Linux kernel=2.6.36
SUSE Linux Enterprise Desktop=11-sp1
openSUSE openSUSE=11.1
SUSE Linux Enterprise Server=11-sp1
SUSE Linux Enterprise Real Time Extension=11-sp1
Canonical Ubuntu Linux=10.10
Canonical Ubuntu Linux=9.04
Canonical Ubuntu Linux=10.04
Canonical Ubuntu Linux=9.10
Canonical Ubuntu Linux=8.04
Canonical Ubuntu Linux=6.06

Event History

Sep 6, 2010
Data Sourced
via Red Hat·08:05 AM
DescriptionSeverityAffected Software
Sep 21, 2010
CVE Published
via MITRE·05:00 PM
Data Sourced
via MITRE·05:00 PM
Description
Jan 11, 2024
Data Sourced
via Launchpad·09:51 PM
Description
Sep 15, 2024
Data Sourced
via Ubuntu·10:39 PM
RemedyDescriptionSeverityAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2010-3080?

CVE-2010-3080 is considered to have a moderate severity level.

2

How do I fix CVE-2010-3080?

To fix CVE-2010-3080, upgrade to a version of the Linux kernel that is higher than 2.6.36.

3

What systems are affected by CVE-2010-3080?

CVE-2010-3080 affects Linux kernel versions up to 2.6.36 and various distributions including Debian, openSUSE, and Ubuntu.

4

What type of vulnerability is CVE-2010-3080?

CVE-2010-3080 is a bug in the snd_seq_oss_open function within the sound subsystem of the Linux kernel.

5

Can CVE-2010-3080 lead to system compromise?

Yes, CVE-2010-3080 can potentially lead to denial of service or other issues due to improper error handling.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203