{"id":"CVE-2022-50712","published":"2025-12-24T12:22:37Z","modified":"2026-05-11T19:24:03Z","title":"devlink: hold region lock when flushing snapshots","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"In the Linux kernel, the following vulnerability has been resolved:\n\ndevlink: hold region lock when flushing snapshots\n\nNetdevsim triggers a splat on reload, when it destroys regions\nwith snapshots pending:\n\n  WARNING: CPU: 1 PID: 787 at net/core/devlink.c:6291 devlink_region_snapshot_del+0x12e/0x140\n  CPU: 1 PID: 787 Comm: devlink Not tainted 6.1.0-07460-g7ae9888d6e1c #580\n  RIP: 0010:devlink_region_snapshot_del+0x12e/0x140\n  Call Trace:\n   <TASK>\n   devl_region_destroy+0x70/0x140\n   nsim_dev_reload_down+0x2f/0x60 [netdevsim]\n   devlink_reload+0x1f7/0x360\n   devlink_nl_cmd_reload+0x6ce/0x860\n   genl_family_rcv_msg_doit.isra.0+0x145/0x1c0\n\nThis is the locking assert in devlink_region_snapshot_del(),\nwe're supposed to be holding the region->snapshot_lock here.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.00274,"percentile":0.12535,"provenance":"source"},"cwes":[],"references":[{"url":"https://git.kernel.org/stable/c/49383d4e59bb704341aaa1d51440ccce58270e61","tags":[]},{"url":"https://git.kernel.org/stable/c/6298cab4d80bfdb6fe01fe31fd9f0ba26317fdae","tags":[]},{"url":"https://git.kernel.org/stable/c/b4cafb3d2c740f8d1b1234b43ac4a60e5291c960","tags":[]}],"priority":{"score":2.5,"factors":[{"name":"EPSS percentile","points":2.51}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= 2dec18ad826f52658f7781ee995d236cc449b678, < 49383d4e59bb704341aaa1d51440ccce58270e61",">= 2dec18ad826f52658f7781ee995d236cc449b678, < 6298cab4d80bfdb6fe01fe31fd9f0ba26317fdae",">= 2dec18ad826f52658f7781ee995d236cc449b678, < b4cafb3d2c740f8d1b1234b43ac4a60e5291c960"]},{"vendor":"Linux","product":"Linux","versions":["6.0"]}],"euvd":{"id":"EUVD-2022-55777","exploited":false,"provenance":"source"}}