CVE Catalog

CVE-2025-39768

MediumCVSS 5.5
Published: Updated: Translated: NVD NIST

Exploitation Probability (EPSS)

Low risk
0.13%

2th percentile - higher than 2% of all known CVEs

Summary

In the Linux kernel net/mlx5 HWS driver, the error flow for complex rules rehash is incorrect. If moving rules fails, the kernel may enter a series of soft lock-ups or other problematic behavior instead of continuing. The fix corrects error handling: no polling before enqueue, abort rehash on timeout, continue on other errors, and return the first error code.

Risk Assessment

On systems with Mellanox mlx5 cards, kernel soft lock-ups may occur during rule rehash errors, leading to network unavailability and requiring a restart.

Recommendation

Update the Linux kernel to a version containing the fix, especially on servers with Mellanox mlx5 cards using HWS.

Other vulnerabilities in Linux kernel

See all
Original NVD description (English source)

In the Linux kernel, the following vulnerability has been resolved: net/mlx5: HWS, fix complex rules rehash error flow Moving rules from matcher to matcher should not fail. However, if it does fail due to various reasons, the error flow should allow the kernel to continue functioning (albeit with broken steering rules) instead of going into series of soft lock-ups or some other problematic behaviour. Similar to the simple rules, complex rules rehash logic suffers from the same problems. This patch fixes the error flow for moving complex rules: - If new rule creation fails before it was even enqeued, do not poll for completion - If TIMEOUT happened while moving the rule, no point trying to poll for completions for other rules. Something is broken, completion won't come, just abort the rehash sequence. - If some other completion with error received, don't give up. Continue handling rest of the rules to minimize the damage. - Make sure that the first error code that was received will be actually returned to the caller instead of replacing it with the generic error code. All the aforementioned issues stem from the same bad error flow, so no point fixing them one by one and leaving partially broken code - fixing them in one patch.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS