CVE-2026-99766: scsi: aic79xx: Fix NULL pointer dereference in device reset

Published Nov 20, 2026
·
Updated

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

scsi: aic79xx: Fix NULL pointer dereference in device reset

Since commit c67e63800446 ("scsi: aic79xx: Do not reference SCSI command when resetting device") the device reset SCB has no SCSI command, but ahdlinuxdevreset() still sets its residual, and ahdabortscbs(), which completes it, sets its status. Seen on an AIC-7902 when a failing disk triggered a device reset, which killed the SCSI error handler:

BUG: kernel NULL pointer dereference, address: 0000009c EIP: ahdlinuxdevreset.cold+0xee/0x26e

Add NULL command checks to the accessors in aic79xxosm.h. Also skip autosense for an SCB without a command and complete it with ahddone() right away: the REQUEST SENSE path can clear SCBDEVICERESET, after which ahddone() would dereference the missing command.

Affected Software

6 affected componentsFixes available
linux/kernel>=6.7.0<6.12.118
6.12.118
linux/kernel>=6.13.0<6.18.64
6.18.64
linux/kernel>=6.19.0<7.3.5
7.3.5
debian/linux*
debian/linux*
debian/linux<=6.12.107-1, <=6.12.117-1, <=7.3.4-1
6.1.176-16.1.192-27.3.5-1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 6.12.118
  2. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 6.18.64
  3. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 7.3.5
  4. Upgrade

    Upgrade debian/linux to a version that resolves this vulnerability.

    Fixed in 6.1.176-1Fixed in 6.1.192-2Fixed in 7.3.5-1
  5. Compensating control

    Add NULL command checks to the accessors in aic79xx_osm.h to prevent dereferencing a missing SCSI command.

Event History

Nov 20, 2026
CVE Published
via MITRE·05:51 AM
Data Sourced
via MITRE·05:51 AM
Description
Data Sourced
via OSV·05:51 AM
DescriptionAffected Software
Data Sourced
via NVD·06:18 AM
Description

Frequently Asked Questions

1

Which systems are realistically exposed to this issue?

Systems using the Linux kernel aic79xx SCSI driver with an AIC-7902 controller are known to be exposed based on the reported trigger. The failure occurs during a device-reset path, such as when a disk is failing.

2

What is the operational impact if this is triggered?

The NULL pointer dereference can kill the SCSI error handler during device reset. This can disrupt error recovery for the affected SCSI device.

3

Is an attacker required to trigger the problem?

The provided information describes a hardware or device-error trigger: a failing disk causing a device reset. It does not identify any remote, local-user, or authentication-based attack prerequisite.

4

What code paths does the fix change?

The fix adds NULL-command checks to aic79xx accessors, avoids autosense for reset SCBs that have no command, and completes those SCBs immediately with ahd_done(). This prevents later paths from dereferencing the missing SCSI command.

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