CVE-2025-37787
Last modified
CVE-2025-37787 is a medium-severity vulnerability rated 5.5/10 on the CVSS scale. In the Linux kernel, the following vulnerability has been resolved: net: dsa: mv88e6xxx: avoid unregistering devlink regions which were never registered Russell King reports that a system with mv88e6xxx dereferences a NULL pointer when unbinding this driver: https://lore.kernel.org/netdev/Z_lRkMlTJ1KQ0kVX@shell.armlinux.org.uk/ The crash seems to be in devlink_region_destroy(), which is not NULL tolerant but is given a NULL devlink global region pointer. At least on some chips, some devlink regions are conditionally registered since the blamed commit, see mv88e6xxx_setup_devlink_regions_global(): if (cond && !cond(chip)) continue; These are MV88E6XXX_REGION_STU and MV88E6XXX_REGION_PVT. If the chip does not have an STU or PVT, it should crash like this. To fix the issue, avoid unregistering those regions which are NULL, i.e. were skipped at mv88e6xxx_setup_devlink_regions_global() time.. EPSS estimates a 0.15% chance of exploitation in the next 30 days.
Description
In the Linux kernel, the following vulnerability has been resolved: net: dsa: mv88e6xxx: avoid unregistering devlink regions which were never registered Russell King reports that a system with mv88e6xxx dereferences a NULL pointer when unbinding this driver: https://lore.kernel.org/netdev/Z_lRkMlTJ1KQ0kVX@shell.armlinux.org.uk/ The crash seems to be in devlink_region_destroy(), which is not NULL tolerant but is given a NULL devlink global region pointer. At least on some chips, some devlink regions are conditionally registered since the blamed commit, see mv88e6xxx_setup_devlink_regions_global(): if (cond && !cond(chip)) continue; These are MV88E6XXX_REGION_STU and MV88E6XXX_REGION_PVT. If the chip does not have an STU or PVT, it should crash like this. To fix the issue, avoid unregistering those regions which are NULL, i.e. were skipped at mv88e6xxx_setup_devlink_regions_global() time.
Metrics
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Weakness Enumeration
Affected Software
| Vendor | Product | Versions | Update |
|---|---|---|---|
| Linux | Linux Kernel | >= 5.13, < 5.15.181 | — |
| Linux | Linux Kernel | >= 5.16, < 6.1.135 | — |
| Linux | Linux Kernel | >= 6.2, < 6.6.88 | — |
| Linux | Linux Kernel | >= 6.7, < 6.12.25 | — |
| Linux | Linux Kernel | >= 6.13, < 6.14.4 | — |
| Linux | Linux Kernel | 6.15 | Rc1 |
References
Timeline
- Published
- Last Modified
- Status
- Modified
Frequently Asked Questions
What is CVE-2025-37787?
How severe is CVE-2025-37787?
How do I fix CVE-2025-37787?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2025
- CVE-2025-37781In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2025-37782Rejected reason: This CVE ID has been rejected or withdrawn …
- CVE-2025-37783In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2025-37784In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2025-37785In the Linux kernel, the following vulnerability has been re…7.1
- CVE-2025-37786In the Linux kernel, the following vulnerability has been re…7.8
- CVE-2025-37788In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2025-37789In the Linux kernel, the following vulnerability has been re…7.8
- CVE-2025-3779The Personizely plugin for WordPress is vulnerable to Stored…6.4
- CVE-2025-37790In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2025-37791In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2025-37792In the Linux kernel, the following vulnerability has been re…5.5
Are you affected by CVE-2025-37787?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
