ALSA: core: Fix use-after-free in snd_card_do_free()
In the Linux kernel, the following vulnerability has been resolved: ALSA: core: Fix use-after-free in snd_card_do_free() A use-after-free was detected in snd_card_do_free() when a sound card managed by devres is unbound while a user-space application still holds an open file descriptor. For managed cards, the memory is allocated using devres_alloc(), and its release function is set to __snd_card_release(), which calls snd_card_free(). When the device is unbound, the unbind thread calls snd_card_free(), which drops a reference to the card's device. If the user thread still has an open file descriptor, the reference count does not reach zero, and the unbind thread blocks on wait_for_completion(&released). When the user thread closes the file descriptor, it drops the final reference, invoking the device release callback release_card_device(), which calls snd_card_do_free(). snd_card_do_free() performs cleanup and calls complete(card->release_completion). This wakes up the unbind thread, which returns from snd_card_free() and __snd_card_release(). The devres core then immediately frees the memory block containing the snd_card structure. Meanwhile, the user thread continues execution in snd_card_do_free() and evaluates `if (!card->managed)`. It reads the `managed` boolean from the snd_card structure that was just freed by the unbind thread, triggering a KASAN use-after-free. Fix this by caching the value of card->managed in a local variable before calling complete(). This ensures
CVE-2026-90198
Primary source · Revision 1
Imported from structured advisory data. Source references identify upstream records or fields; verify affected versions and your deployed configuration.
Security context
Source reference: cve:CVE-2026-90198
Linux
Source reference: /containers/cna/affected/0/product
- Affected versions
- Not stated in this record
- Fixed versions
- Not stated in this record
- Prerequisites
- Not stated in this record
Linux
Source reference: /containers/cna/affected/1/product
- Affected versions
- Not stated in this record
- Fixed versions
- Not stated in this record
- Prerequisites
- Not stated in this record
Structured affected-version data
Original package identities and version rules from this source.
[
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"vendor": "Linux",
"product": "Linux",
"versions": [
{
"status": "affected",
"version": "e8ad415b7a55cb9a9fbfc04696518d5ea0b609b3",
"lessThan": "d3d67f680dbc23a5e5e3d3ecfdbf700465809877",
"versionType": "git"
},
{
"status": "affected",
"version": "e8ad415b7a55cb9a9fbfc04696518d5ea0b609b3",
"lessThan": "09b27dd01b98480334c10bf6fb8d41d5fb063a4b",
"versionType": "git"
},
{
"status": "affected",
"version": "e8ad415b7a55cb9a9fbfc04696518d5ea0b609b3",
"lessThan": "03c5dabc8f16bc212a5b26d2425c03a55e55a86d",
"versionType": "git"
},
{
"status": "affected",
"version": "e8ad415b7a55cb9a9fbfc04696518d5ea0b609b3",
"lessThan": "6da22efb5cf490b06ffbca32b10fc8af7654fee0",
"versionType": "git"
},
{
"status": "affected",
"version": "e8ad415b7a55cb9a9fbfc04696518d5ea0b609b3",
"lessThan": "a561012868ae37c28f61fdf658bf6f251bc0e8e8",
"versionType": "git"
},
{
"status": "affected",
"version": "e8ad415b7a55cb9a9fbfc04696518d5ea0b609b3",
"lessThan": "7d9b5e86775fa97a487da08b9aa76e1674bf8868",
"versionType": "git"
},
{
"status": "affected",
"version": "e8ad415b7a55cb9a9fbfc04696518d5ea0b609b3",
"lessThan": "5ae1a690c522fea2900ff56c8c2ace7b059f5e04",
"versionType": "git"
}
],
"programFiles": [
"sound/core/init.c"
],
"defaultStatus": "unaffected"
},
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"vendor": "Linux",
"product": "Linux",
"versions": [
{
"status": "affected",
"version": "5.15"
},
{
"status": "unaffected",
"version": "0",
"lessThan": "5.15",
"versionType": "semver"
},
{
"status": "unaffected",
"version": "5.15.221",
"versionType": "semver",
"lessThanOrEqual": "5.15.*"
},
{
"status": "unaffected",
"version": "6.1.188",
"versionType": "semver",
"lessThanOrEqual": "6.1.*"
},
{
"status": "unaffected",
"version": "6.6.157",
"versionType": "semver",
"lessThanOrEqual": "6.6.*"
},
{
"status": "unaffected",
"version": "6.12.110",
"versionType": "semver",
"lessThanOrEqual": "6.12.*"
},
{
"status": "unaffected",
"version": "6.18.52",
"versionType": "semver",
"lessThanOrEqual": "6.18.*"
},
{
"status": "unaffected",
"version": "7.2.6",
"versionType": "semver",
"lessThanOrEqual": "7.2.*"
},
{
"status": "unaffected",
"version": "7.3",
"versionType": "original_commit_for_fix",
"lessThanOrEqual": "*"
}
],
"programFiles": [
"sound/core/init.c"
],
"defaultStatus": "affected"
}
]- Related CVEs
- CVE-2026-90198
Source reference:
/cveMetadata/cveId
Publisher severity
No explicit severity was provided.
- Event
- #36577 · Revision 1
- Added to Heist Feed
- Publisher date