{"id":"CVE-2022-50712","aliases":["CVE-2022-50712"],"related":[],"kind":"vulnerability","state":"published","title":"devlink: hold region lock when flushing snapshots","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\ndevlink: mantener el bloqueo de región al vaciar instantáneas\n\nNetdevsim provoca un splat al recargar, cuando destruye regiones\ncon instantáneas pendientes:\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\nEsta es la aserción de bloqueo en devlink_region_snapshot_del(),\nse supone que debemos estar manteniendo el region  ->  snapshot_lock aquí.","source":"nvd"}],"published":"2025-12-24T12:22:37.676Z","modified":"2026-11-10T12:10:00.177Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"2dec18ad826f52658f7781ee995d236cc449b678","fixed":"49383d4e59bb704341aaa1d51440ccce58270e61","status":"affected"},{"type":"git","introduced":"2dec18ad826f52658f7781ee995d236cc449b678","fixed":"6298cab4d80bfdb6fe01fe31fd9f0ba26317fdae","status":"affected"},{"type":"git","introduced":"2dec18ad826f52658f7781ee995d236cc449b678","fixed":"b4cafb3d2c740f8d1b1234b43ac4a60e5291c960","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.0","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.0","status":"unaffected"},{"type":"semver","introduced":"6.0.16","lastAffected":"6.0.*","status":"unaffected"},{"type":"semver","introduced":"6.1.2","lastAffected":"6.1.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.2","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/49383d4e59bb704341aaa1d51440ccce58270e61","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/6298cab4d80bfdb6fe01fe31fd9f0ba26317fdae","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/b4cafb3d2c740f8d1b1234b43ac4a60e5291c960","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-50712","url":"https://www.cve.org/CVERecord?id=CVE-2022-50712","licence":"CVE Terms of Use","modified":"2026-05-11T19:24:03.573Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-50712","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-50712","licence":"Public domain","modified":"2026-11-10T12:10:00.177Z"}],"updatedAt":"2026-11-25T22:58:21.329Z","epss":{"score":0.00252,"percentile":0.1781,"date":"2026-12-01T12:00:22.000Z"}}