title: ixgbe: Fix NULL pointer dereference in ethtool loopback test
description: In the Linux kernel, the following vulnerability has been resolved:
ixgbe: Fix NULL pointer dereference in ethtool loopback test
The ixgbe driver currently generates a NULL pointer dereference when
performing the ethtool loopback test. This is due to the fact that there
isn't a q_vector associated with the test ring when it is setup as
interrupts are not normally added to the test rings.
To address this I have added code that will check for a q_vector before
returning a napi_id value. If a q_vector is not present it will return a
value of 0.
affected:
{
product: Linux
vendor: Linux
defaultStatus: unaffected
repo: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
versions:
version: b02e5a0ebb17, lessThan: 758d19098df4, status: affected, versionType: git
version: b02e5a0ebb17, lessThan: 31166efb1cee, status: affected, versionType: git
}
{
product: Linux
vendor: Linux
defaultStatus: affected
repo: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
versions:
version: 5.11, status: affected
version: 0, lessThan: 5.11, status: unaffected, versionType: custom
version: 5.11.16, lessThanOrEqual: 5.11.*, status: unaffected, versionType: custom
version: 5.12, lessThanOrEqual: *, status: unaffected, versionType: original_commit_for_fix
}
