# CVE-2022-50712: devlink: hold region lock when flushing snapshots

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **EPSS:** 0.27% (percentile 13, 2026-11-26)
- **Published:** 2025-12-24T12:22:37.676Z
- **Modified:** 2026-11-10T12:10:00.177Z

## Who should check

- Anyone running Linux \>= 2dec18ad826f52658f7781ee995d236cc449b678, \< 49383d4e59bb704341aaa1d51440ccce58270e61; \>= 2dec18ad826f52658f7781ee995d236cc449b678, \< 6298cab4d80bfdb6fe01fe31fd9f0ba26317fdae; \>= 2dec18ad826f52658f7781ee995d236cc449b678, \< b4cafb3d2c740f8d1b1234b43ac4a60e5291c960
- Anyone running Linux 6.0

## Description

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

devlink: hold region lock when flushing snapshots

Netdevsim triggers a splat on reload, when it destroys regions
with snapshots pending:

  WARNING: CPU: 1 PID: 787 at net/core/devlink.c:6291 devlink\_region\_snapshot\_del+0x12e/0x140
  CPU: 1 PID: 787 Comm: devlink Not tainted 6.1.0-07460-g7ae9888d6e1c \#580
  RIP: 0010:devlink\_region\_snapshot\_del+0x12e/0x140
  Call Trace:
   \<TASK\>
   devl\_region\_destroy+0x70/0x140
   nsim\_dev\_reload\_down+0x2f/0x60 \[netdevsim\]
   devlink\_reload+0x1f7/0x360
   devlink\_nl\_cmd\_reload+0x6ce/0x860
   genl\_family\_rcv\_msg\_doit.isra.0+0x145/0x1c0

This is the locking assert in devlink\_region\_snapshot\_del(),
we're supposed to be holding the region-\>snapshot\_lock here.

## Affected and fixed versions

- Linux: \>= 2dec18ad826f52658f7781ee995d236cc449b678, \< 49383d4e59bb704341aaa1d51440ccce58270e61; \>= 2dec18ad826f52658f7781ee995d236cc449b678, \< 6298cab4d80bfdb6fe01fe31fd9f0ba26317fdae; \>= 2dec18ad826f52658f7781ee995d236cc449b678, \< b4cafb3d2c740f8d1b1234b43ac4a60e5291c960 (cvelist)
- Linux: 6.0 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2022-50712. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2022-50712.md
Affected: Linux >= 2dec18ad826f52658f7781ee995d236cc449b678, < 49383d4e59bb704341aaa1d51440ccce58270e61; >= 2dec18ad826f52658f7781ee995d236cc449b678, < 6298cab4d80bfdb6fe01fe31fd9f0ba26317fdae; >= 2dec18ad826f52658f7781ee995d236cc449b678, < b4cafb3d2c740f8d1b1234b43ac4a60e5291c960; Linux 6.0
Fixed in: Linux 49383d4e59bb704341aaa1d51440ccce58270e61, Linux 6298cab4d80bfdb6fe01fe31fd9f0ba26317fdae

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2022-50712 being exploited?

There is no confirmed exploitation: CVE-2022-50712 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.27% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2022-50712?

It has no CVSS score yet. Unknown.

### Which versions are affected by CVE-2022-50712?

Linux \>= 2dec18ad826f52658f7781ee995d236cc449b678, \< 49383d4e59bb704341aaa1d51440ccce58270e61; \>= 2dec18ad826f52658f7781ee995d236cc449b678, \< 6298cab4d80bfdb6fe01fe31fd9f0ba26317fdae; \>= 2dec18ad826f52658f7781ee995d236cc449b678, \< b4cafb3d2c740f8d1b1234b43ac4a60e5291c960; Linux 6.0.

### Is there a fix for CVE-2022-50712?

Yes. Fixed in Linux 49383d4e59bb704341aaa1d51440ccce58270e61, Linux 6298cab4d80bfdb6fe01fe31fd9f0ba26317fdae. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2022-50712?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- other: <https://git.kernel.org/stable/c/49383d4e59bb704341aaa1d51440ccce58270e61>
- other: <https://git.kernel.org/stable/c/6298cab4d80bfdb6fe01fe31fd9f0ba26317fdae>
- other: <https://git.kernel.org/stable/c/b4cafb3d2c740f8d1b1234b43ac4a60e5291c960>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2022-50712>

HTML: <https://flawdb.com/CVE-2022-50712> · JSON: <https://flawdb.com/api/v1/entries/CVE-2022-50712>
