Linux
i40e: add validation for ring_len param
In the Linux kernel, the following vulnerability has been resolved: i40e: add validation for ring_len param The `ring_len` parameter provided by the virtual function (VF) is assigned directly to the hardware memory context (HMC) without any validation. To address this, introduce an upper boundary check for both Tx and Rx queue lengths. The maximum number of descriptors supported by the hardware is 8k-32. Additionally, enforce alignment constraints: Tx rings must be a multiple of 8, and Rx rings must be a multiple of 32.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 5c3c48ac6bf56367c4e89f6453cd2d61e50375bd, < 0543d40d6513cdf1c7882811086e59a6455dfe97
- >= 5c3c48ac6bf56367c4e89f6453cd2d61e50375bd, < 7d749e38dd2b7e8a80da2ca30c93e09de95bfcf9
- >= 5c3c48ac6bf56367c4e89f6453cd2d61e50375bd, < 45a7527cd7da4cdcf3b06b5c0cb1cae30b5a5985
- >= 5c3c48ac6bf56367c4e89f6453cd2d61e50375bd, < d3b0d3f8d11fa957171fbb186e53998361a88d4e
- >= 5c3c48ac6bf56367c4e89f6453cd2d61e50375bd, < c0c83f4cd074b75cecef107bfc349be7d516c9c4
- >= 5c3c48ac6bf56367c4e89f6453cd2d61e50375bd, < 05fe81fb9db20464fa532a3835dc8300d68a2f84
- >= 5c3c48ac6bf56367c4e89f6453cd2d61e50375bd, < afec12adab55d10708179a64d95d650741e60fe0
- >= 5c3c48ac6bf56367c4e89f6453cd2d61e50375bd, < 55d225670def06b01af2e7a5e0446fbe946289e8
Fixed in 0543d40d6513cdf1c7882811086e59a6455dfe97, 7d749e38dd2b7e8a80da2ca30c93e09de95bfcf9, 45a7527cd7da4cdcf3b06b5c0cb1cae30b5a5985, d3b0d3f8d11fa957171fbb186e53998361a88d4e, c0c83f4cd074b75cecef107bfc349be7d516c9c4, 05fe81fb9db20464fa532a3835dc8300d68a2f84, afec12adab55d10708179a64d95d650741e60fe0, 55d225670def06b01af2e7a5e0446fbe946289e8
- 3.12
Fixed in 0, 5.4.300, 5.10.245, 5.15.194, 6.1.155, 6.6.109, 6.12.50, 6.16.10, 6.17
Mitigation
Upgrade Linux to 0543d40d6513cdf1c7882811086e59a6455dfe97 or 7d749e38dd2b7e8a80da2ca30c93e09de95bfcf9 or 45a7527cd7da4cdcf3b06b5c0cb1cae30b5a5985 or d3b0d3f8d11fa957171fbb186e53998361a88d4e or c0c83f4cd074b75cecef107bfc349be7d516c9c4 or 05fe81fb9db20464fa532a3835dc8300d68a2f84 or afec12adab55d10708179a64d95d650741e60fe0 or 55d225670def06b01af2e7a5e0446fbe946289e8 or later.
Upgrade Linux to 0 or 5.4.300 or 5.10.245 or 5.15.194 or 6.1.155 or 6.6.109 or 6.12.50 or 6.16.10 or 6.17 or later.
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.