{"id":"CVE-2022-50669","aliases":["CVE-2022-50669"],"related":[],"kind":"vulnerability","state":"published","title":"misc: ocxl: fix possible name leak in ocxl_file_register_afu()","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nmisc: ocxl: fix possible name leak in ocxl_file_register_afu()\n\nIf device_register() returns error in ocxl_file_register_afu(),\nthe name allocated by dev_set_name() need be freed. As comment\nof device_register() says, it should use put_device() to give\nup the reference in the error path. So fix this by calling\nput_device(), then the name can be freed in kobject_cleanup(),\nand info is freed in info_release().","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nmisc: ocxl: fix possible name leak in ocxl_file_register_afu()\n\nIf device_register() returns error in ocxl_file_register_afu(),\nthe name allocated by dev_set_name() need be freed. As comment\nof device_register() says, it should use put_device() to give\nup the reference in the error path. So fix this by calling\nput_device(), then the name can be freed in kobject_cleanup(),\nand info is freed in info_release().","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\nmisceláneo: ocxl: soluciona posible fuga de nombre en ocxl_file_register_afu()\n\nSi device_register() devuelve error en ocxl_file_register_afu(), el nombre asignado por dev_set_name() debe ser liberado. Como dice el comentario de device_register(), debería usar put_device() para liberar la referencia en la ruta de error. Así que soluciona esto llamando a put_device(), entonces el nombre puede ser liberado en kobject_cleanup(), e info es liberada en info_release().","source":"nvd"}],"published":"2025-12-09T01:29:20.745Z","modified":"2026-11-10T12:10:00.177Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"75ca758adbafc81804c39b2c200ecdc819a6c042","fixed":"0cd05062371a49774e8a45258bdedf0bd6d3d327","status":"affected"},{"type":"git","introduced":"75ca758adbafc81804c39b2c200ecdc819a6c042","fixed":"7525741cb302a1672b8c3a5edb2a08e4229b5c7c","status":"affected"},{"type":"git","introduced":"75ca758adbafc81804c39b2c200ecdc819a6c042","fixed":"3299983a6bf628249ac650908e62d12de959341e","status":"affected"},{"type":"git","introduced":"75ca758adbafc81804c39b2c200ecdc819a6c042","fixed":"557b7de055d1e230ddb6664c29d26917b8db9143","status":"affected"},{"type":"git","introduced":"75ca758adbafc81804c39b2c200ecdc819a6c042","fixed":"2fce8b3583d1641a1716486f408478b58e96ec91","status":"affected"},{"type":"git","introduced":"75ca758adbafc81804c39b2c200ecdc819a6c042","fixed":"a4cb1004aeed2ab893a058fad00a5b41a12c4691","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"5.2","status":"affected"},{"type":"semver","introduced":"0","fixed":"5.2","status":"unaffected"},{"type":"semver","introduced":"5.4.229","lastAffected":"5.4.*","status":"unaffected"},{"type":"semver","introduced":"5.10.163","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.86","lastAffected":"5.15.*","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/0cd05062371a49774e8a45258bdedf0bd6d3d327","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/7525741cb302a1672b8c3a5edb2a08e4229b5c7c","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/3299983a6bf628249ac650908e62d12de959341e","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/557b7de055d1e230ddb6664c29d26917b8db9143","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/2fce8b3583d1641a1716486f408478b58e96ec91","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/a4cb1004aeed2ab893a058fad00a5b41a12c4691","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-50669","url":"https://www.cve.org/CVERecord?id=CVE-2022-50669","licence":"CVE Terms of Use","modified":"2026-05-11T19:23:20.227Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-50669","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-50669","licence":"Public domain","modified":"2026-11-10T12:10:00.177Z"}],"updatedAt":"2026-11-25T22:58:21.314Z","epss":{"score":0.00269,"percentile":0.20412,"date":"2026-12-01T12:00:22.000Z"}}