7.2
CWE
415
Advisory Published
CVE Published
Updated

CVE-2010-3080: Double Free

First published: Mon Sep 06 2010(Updated: )

Description of problem: There is a bug in snd_seq_oss_open from sound/core/seq/oss/seq_oss_init.c. So here's the error path for some setup failure: _error: snd_seq_oss_writeq_delete(dp->writeq); snd_seq_oss_readq_delete(dp->readq); snd_seq_oss_synth_cleanup(dp); snd_seq_oss_midi_cleanup(dp); delete_port(dp); delete_seq_queue(dp->queue); kfree(dp); This looks okay, but actually, delete_port calls port_delete (eventually... this code is tough to follow) which does a free_devinfo on the owner struct seq_oss_devinfo, here (around ~269 in seq_ports.c): if (port->private_free) port->private_free(port->private_data); because of this (around ~334 in seq_oss_init.c): memset(&callback, 0, sizeof(callback)); callback.owner = THIS_MODULE; callback.private_data = dp; callback.event_input = snd_seq_oss_event_input; callback.private_free = free_devinfo; port.kernel = &callback; Which does this: static void free_devinfo(void *private) { struct seq_oss_devinfo *dp = (struct seq_oss_devinfo *)private; if (dp->timer) snd_seq_oss_timer_delete(dp->timer); if (dp->writeq) snd_seq_oss_writeq_delete(dp->writeq); if (dp->readq) snd_seq_oss_readq_delete(dp->readq); kfree(dp); } So..... delete_port(dp); delete_seq_queue(dp->queue); <= Oops, dereferencing released pointer. kfree(dp); <= Oops, double free. Acknowledgements: Red Hat would like to thank Tavis Ormandy for reporting this issue.

Credit: secalert@redhat.com

Affected SoftwareAffected VersionHow to fix
debian/linux-2.6
Linux Kernel<2.6.36
Linux Kernel=2.6.36
Linux Kernel=2.6.36-rc1
Linux Kernel=2.6.36-rc2
Linux Kernel=2.6.36-rc3
SUSE Linux=11.1
SUSE Linux Enterprise Desktop=11-sp1
SUSE Linux Enterprise Real Time Extension=11-sp1
SUSE Linux Enterprise Server=11-sp1
Ubuntu=6.06
Ubuntu=8.04
Ubuntu=9.04
Ubuntu=9.10
Ubuntu=10.04
Ubuntu=10.10

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

Frequently Asked Questions

  • What is the severity of CVE-2010-3080?

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

  • 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.

  • 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.

  • 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.

  • 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.
© 2025 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203