From mboxrd@z Thu Jan 1 00:00:00 1970 From: AL-KERNEL To: kernel-cve@kernelcve.org Subject: [CVE-2026-46004][MODERATE 7.0] ALSA: caiaq: Handle probe errors properly Date: Wed, 27 May 2026 10:22:45 -0400 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-AL-KERNEL-CVE: CVE-2026-46004 X-AL-KERNEL-Priority: MODERATE 7.0 X-AL-KERNEL-Severity: MODERATE 7.0 X-AL-KERNEL-Base-Severity: MODERATE X-AL-KERNEL-KPANIC: YES X-AL-KERNEL-ActionableScore: 7 X-AL-KERNEL-ActionableScore-Lower: 4 X-AL-KERNEL-Commit: f537e3ad69609f6924a4db6b4a7f6561f5288bdd List-Id: CVE: CVE-2026-46004 Priority: MODERATE 7.0 AL-KERNEL base severity: MODERATE KPANIC flag: YES Patch: ALSA: caiaq: Handle probe errors properly Commit: f537e3ad69609f6924a4db6b4a7f6561f5288bdd Upstream patch: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=f537e3ad69609f6924a4db6b4a7f6561f5288bdd Original CVE announcement: https://lore.kernel.org/linux-cve-announce/?q=CVE-2026-46004 Analysis date: Wed, 27 May 2026 10:22:45 -0400 ActionableScore: 7 ActionableScore lower bound: 4 Actionable bucket: Strong Important candidate / Actionable Moderate at minimum Manual review required: YES Summary: A UAF in the ALSA caiaq USB probe error path can occur when setup continues after `snd_card_free()`, allowing a malicious or faulty USB device or emulated reprobe scenario to cause kernel crash and requiring review for possible privilege escalation. ====================================================================== ABOUT THIS REPORT ====================================================================== The original Linux kernel CVE announcement for CVE-2026-46004 is available here: https://lore.kernel.org/linux-cve-announce/?q=CVE-2026-46004 The original announcement does not normally provide a security severity estimate, CVSS assessment, or enough information to determine whether the reported kernel bug represents a practically relevant security issue. This report was generated by AL-KERNEL, an AI-assisted Linux kernel vulnerability analysis system developed by Alexander Larkin. It combines an autonomous classifier with LLM-assisted technical analysis and a separate ActionableScore mechanism. The purpose of this report is to prioritize Linux kernel CVEs before manual review, identify cases that require prompt investigation, and support automatic closure of issues that are unlikely to have meaningful security impact. Published priority for this report: MODERATE 7.0 Manual review required: YES A detailed explanation of the methodology and priority rules is included at the end of this message. ====================================================================== AL-KERNEL CLASSIFICATION RESULT ====================================================================== CVE-2026-46004 MODERATE CHECK Maybe valid. Check manually. Hints by AL-KERNEL: The best (paranoid) CVSS is 'AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H';*CWE-416;CWE-703;CWE-252;Other CVSS 'AV:P/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:H';BEST CVSS score: '7';DESCR 'A use-after-free can occur in the ALSA caiaq USB probe path because setup_card() ignored several initialization errors and continued after snd_card_register() failure. In the dangerous path, snd_card_free() could release the card object and later code such as snd_usb_caiaq_control_init() could still operate on the partially freed state. A malicious or faulty CAIAQ USB audio device can plausibly trigger probe failures, so the realistic exposure is physical USB or device-emulation based rather than network reachable. For the CVSS the PR:L is used in the paranoid score because some environments may let a less privileged local user influence USB emulation, USB/IP, driver binding, or repeated reprobe behavior without full host root. Impact is at least kernel crash DoS. Because this is a real UAF in a kernel driver probe path, worst-case confidentiality and integrity impact should be reviewed even though the patch does not demonstrate a reliable exploit primitive.';YES REQUIRES MANUAL CHECK; ,and ActionableScore result is Strong Important candidate / Actionable Moderate at minimum (with actual score 6) YES USB INIT PRINTF-TTY ERRORPATH UAF HARDWARE LINUS KPANIC NO NO checked ====================================================================== ACTIONABLESCORE ANALYSIS ====================================================================== ActionableScore=7 ActionableScoreLower=4 ## 1. ActionableScore * Conservative score: 4 * Paranoid score: 7 * Final recommended bucket: **Strong Important candidate / Actionable Moderate at minimum**:: ## 2. Signal breakdown Conservative signals: * Generic memory corruption, strong corruption primitive: +2 The commit explicitly describes a UAF after `snd_card_free()` followed by later use in paths such as `snd_usb_caiaq_control_init()`. * Real lifetime corruption: +1 This is a real object lifetime bug in the probe error path. * Reliable kernel crash / strong DoS: +1 A failed probe path can continue after freeing the ALSA card object and crash the kernel. * Firmware/device-mediated external influence: +1 A faulty or malicious CAIAQ USB audio device can influence probe behavior and error paths. * Physical-only or hardware/device condition: -2 The realistic base scenario requires attaching or emulating a specific USB audio device. * Hard or special error-path triggering: -1 The UAF depends on probe failure at the right initialization stage, not the normal successful probe path. Paranoid additional signals: * Local unprivileged trigger concern: +1 In some environments, a less privileged user may influence USB/IP, USB gadget emulation, VM USB passthrough, driver binding, or repeated reprobe behavior. * Privilege escalation plausible: +2 UAF in a kernel driver probe path can sometimes be shaped through allocation timing and device-controlled state, even though this patch does not demonstrate a reliable exploit primitive. * Confidentiality impact plausible: +1 UAF may theoretically expose stale kernel object contents or corrupt object interpretation. * Integrity impact plausible: +1 UAF may theoretically allow object corruption or control-flow-relevant misuse if reclaim is influenced. ## 3. Reachability analysis The realistic trigger is a faulty or malicious CAIAQ USB audio device that causes `setup_card()` to hit an initialization failure after partial ALSA card setup. The path is not network reachable in the normal sense and is not triggered by audio traffic alone. Typical exploitation requires physical USB access or a device-emulation path. However, USB/IP, virtualized USB passthrough, gadget frameworks, or delegated driver reprobe workflows can reduce the practical barrier from physical access to local low-privilege influence in some deployments. Containers usually do not matter unless they are granted device-management or USB access. ## 4. Severity interpretation This is stronger than an ordinary Moderate reliability fix because the patch and commit message explicitly identify a UAF, not merely a NULL dereference or resource leak. The realistic impact may be kernel crash during probe, especially if only a malformed physical device is available. The theoretical worst case is more serious because UAF is a recognized kernel memory corruption class and may support privilege escalation if object reclaim and timing can be influenced. No reliable exploit primitive is shown, so this should be treated as a Strong Important candidate rather than assumed Critical. ## 5. One-sentence report phrase A UAF in the ALSA caiaq USB probe error path can occur when setup continues after `snd_card_free()`, allowing a malicious or faulty USB device or emulated reprobe scenario to cause kernel crash and requiring review for possible privilege escalation. ## 6. Manual review recommendation MANUAL CHECK REQUIRED Reason: the patch explicitly fixes a UAF in a kernel USB driver probe path. Even though realistic triggering may require physical or emulated USB access and a specific error path, the lifetime corruption class is high-risk enough for manual review. ====================================================================== UPSTREAM PATCH SUMMARY ====================================================================== Patch: ALSA: caiaq: Handle probe errors properly Commit: f537e3ad69609f6924a4db6b4a7f6561f5288bdd Upstream URL: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=f537e3ad69609f6924a4db6b4a7f6561f5288bdd Commit description: The probe procedure of setup_card() in caiaq driver doesn't treat the error cases gracefully, e.g. the error from snd_card_register() calls snd_card_free() but continues. This would lead to a UAF for the further calls like snd_usb_caiaq_control_init(), as Berk suggested in another patch in the link below. However, the problem is not only that; in general, this function drops the all error handlings (as it's a void function) although its caller can propagate an error to snd_probe(), which eventually calls snd_card_free() as a proper error path. That said, we should treat each error case in setup_card(), and just return the error code promptly, which is then handled later as a fatal error in snd_probe(). This patch achieves it by changing the setup_card() to return an error code. Also, the superfluous snd_card_free() call is removed, too. Note that card->private_free can be set still safely at returning an error. All called functions in card_free() have checks of the unassigned resources or NULL checks. Fixes: 8e3cd08 ("[ALSA] caiaq - add control API and more input features") Cc: stable@vger.kernel.org Link: https://lore.kernel.org/20260413034941.1131465-2-berkcgoksel@gmail.com Link: https://patch.msgid.link/20260414105916.364073-1-tiwai@suse.de Signed-off-by: Takashi Iwai Signed-off-by: Greg Kroah-Hartman Changed files: sound/usb/caiaq/device.c Diff excerpt: Not included in this email. See the upstream URL for the full patch. Full patch: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=f537e3ad69609f6924a4db6b4a7f6561f5288bdd ====================================================================== DETAILED REPORT METHODOLOGY ====================================================================== The original Linux kernel CVE announcement for CVE-2026-46004 can be found here: https://lore.kernel.org/linux-cve-announce/?q=CVE-2026-46004 The original CVE announcement normally does not include a security-level estimate. In particular, it may not contain a CVSS assessment, an impact level, or enough information to determine whether the reported bug is a practically relevant security issue. One purpose of this parallel CVE list is to provide that missing technical and prioritization information. The original goal of the AL-KERNEL project was to prioritize Linux kernel CVE analysis automatically before manual review. The system can also help identify non-security issues that may be suitable for automatic closure. This report was generated by AL-KERNEL, an AI-assisted Linux kernel vulnerability analysis system developed by Alexander Larkin. The first analysis stage combines an autonomous classifier with additional LLM-based analysis. The autonomous classifier runs locally on a CPU and is based on a backpropagation neural network. Together, these mechanisms produce a technical vulnerability description, identify likely weakness types, estimate CVSS severity, and provide input for ActionableScore. Two CVSS estimates are retained because incomplete kernel vulnerability information often permits more than one defensible interpretation: Conservative CVSS vector: AV:P/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:H The Best / paranoid CVSS vector: AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H The Best / paranoid CVSS score: 7 The conservative vector represents a lower-impact interpretation. The Best/paranoid vector intentionally represents a plausible upper-bound interpretation and should not automatically be treated as demonstrated real-world impact. CVSS may also need to be adjusted for a particular Linux deployment, because actual reachability, privileges, enabled kernel configuration, hardware, namespaces, exposed device nodes, and other environmental conditions can differ significantly between systems. A separate ActionableScore mechanism evaluates practical remediation urgency. Its analysis may include reachability, attack prerequisites, subsystem exposure, memory-corruption characteristics, denial-of-service reliability, and possible confidentiality, integrity, or privilege-escalation impact. Conservative ActionableScore: 4 Paranoid ActionableScore: 7 The final base severity is taken directly from the second tab-separated field of the AL-KERNEL classification result. ActionableScore does not replace or independently override that final AL-KERNEL decision, and if ActionableScore adjusted impact level of ALKERNEL, then you would see self-readable flags above like INCREASED_TO_HIGH_BASED_ON_ACTIONABLESCOREHIGHEREQTHAN7. For an AL-KERNEL result of MODERATE, this report uses the following additional presentation split: ActionableScore below 5 -> MODERATE REGULAR ActionableScore 5 or more -> MODERATE 7.0 The distinction between MODERATE REGULAR and MODERATE 7.0 makes it possible to identify Moderate issues that should receive manual analysis and fixes before lower-priority MODERATE REGULAR issues. In many cases, MODERATE REGULAR fixes may wait for a later rebase or routine update. There is one override in which MODERATE REGULAR becomes MODERATE 7.0 even when the ActionableScore is below 5. When the AL-KERNEL result contains the KPANIC flag, a MODERATE result is always presented as MODERATE 7.0. The KPANIC flag selected with few regexps without usage of AI at all, so it helps to detect cases when Kernel Crash happens and similar (to filter False-Negative results from the LLM usage). KPANIC indicates that a reliable kernel crash, kernel panic, or similarly serious kernel availability impact was identified by the classification workflow. AL-KERNEL base severity for this report: MODERATE KPANIC detected for this report: YES Published priority for this report (same as in Subject): MODERATE 7.0 These results are intended to support engineering triage. They are machine-generated estimates, and cases marked for manual review should be validated by a human security engineer before final disposition. For more info read docs linked from here: https://kernelcve.org/ (and you can submit you own patch there to generate such a report for non-existant CVE-id yet). Note that in many cases this AI tool selects higher severity, than real is (means you can expect Importants instead of Moderate 7.0 or Moderates 7.0 instead of regular Moderates). If you see such cases, please use reply email interface to add additional manual analyses info to this particular CVE. And please, please, let me know when you see Lows instead of Importants or Important instead of Low (because particular for such cases I need to tune this AI tool to make it better for this one and next similar). My contact email for such notifications is alexanjelausa@gmail.com (and both send reply to CVE record itself too and see "reply" button below for howto reply).