CVE-2026-89895: media: cobalt: Avoid freeing ALSA private data twice

Published Sep 16, 2026
·
Updated

In the Linux kernel, the following vulnerability has been resolved:

media: cobalt: Avoid freeing ALSA private data twice

sndcobaltcardcreate() stores cobsc in sc->privatedata and installs sndcobaltcardprivatefree() as sc->privatefree. From that point, sndcardfree(sc) releases cobsc through the ALSA card cleanup path.

If cobaltalsainit() fails after sndcobaltcardcreate(), the errexitfree path calls sndcardfree(sc) and then kfree(cobsc). That second free releases the same object again.

Remove the explicit kfree(cobsc) and leave ownership with the ALSA card.

This issue was found by a static analysis checker and confirmed by manual source review.

Affected Software

1 affected component
Linux Kernel

Event History

Sep 16, 2026
CVE Published
via MITRE·10:31 AM
Data Sourced
via MITRE·10:31 AM
Description

Frequently Asked Questions

1

Under what condition can the double free occur?

It occurs when cobalt_alsa_init() fails after snd_cobalt_card_create() has stored the private data on the ALSA card and registered its private-free callback. The error path then frees the ALSA card and explicitly frees the same private object again.

2

What code change resolves the issue?

The explicit kfree(cobsc) in the error cleanup path must be removed. Once snd_cobalt_card_create() succeeds, ownership of cobsc belongs to the ALSA card cleanup path invoked by snd_card_free(sc).

3

How was this issue identified?

A static analysis checker identified the issue, and it was confirmed through manual source review.

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