AZL-114362: CVE-2026-99315 affecting package kernel 6.6.161.1-1
In the Linux kernel, the following vulnerability has been resolved:
ALSA: us122l: Fix NULL dereference at hwdep open and release
usbstreamhwdepopen() and usbstreamhwdeprelease() pass the result of usbifnumtoif() straight to usbautopmgetinterface() and usbautopmputinterface(), without checking it for NULL.
usbifnumtoif() returns NULL once the device is gone, since usbdisabledevice() clears udev->actconfig on disconnect. The hwdep file can outlive the disconnect: the card is released with sndcardfreewhenclosed(), so a process that keeps the character device open reaches the driver's release callback after the USB configuration has been dropped, and interfacetousbdev() then dereferences the NULL interface at offsetof(struct device, parent). The open callback has the same problem when it races with the disconnect.
Check both lookups and fail the open with -ENODEV; in release, skip the runtime PM put when the interface is already gone and still run the rest of the per-file cleanup. Move the us122l->first bookkeeping after the checks so that a failed open no longer leaves a stale file pointer behind.