{"id":"CVE-2022-48786","aliases":["CVE-2022-48786"],"related":[],"kind":"vulnerability","state":"published","title":"vsock: remove vsock from connected table when connect is interrupted by a signal","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nvsock: remove vsock from connected table when connect is interrupted by a signal\n\nvsock_connect() expects that the socket could already be in the\nTCP_ESTABLISHED state when the connecting task wakes up with a signal\npending. If this happens the socket will be in the connected table, and\nit is not removed when the socket state is reset. In this situation it's\ncommon for the process to retry connect(), and if the connection is\nsuccessful the socket will be added to the connected table a second\ntime, corrupting the list.\n\nPrevent this by calling vsock_remove_connected() if a signal is received\nwhile waiting for a connection. This is harmless if the socket is not in\nthe connected table, and if it is in the table then removing it will\nprevent list corruption from a double add.\n\nNote for backporting: this patch requires d5afa82c977e (\"vsock: correct\nremoval of socket from the list\"), which is in all current stable trees\nexcept 4.9.y.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nvsock: remove vsock from connected table when connect is interrupted by a signal\n\nvsock_connect() expects that the socket could already be in the\nTCP_ESTABLISHED state when the connecting task wakes up with a signal\npending. If this happens the socket will be in the connected table, and\nit is not removed when the socket state is reset. In this situation it's\ncommon for the process to retry connect(), and if the connection is\nsuccessful the socket will be added to the connected table a second\ntime, corrupting the list.\n\nPrevent this by calling vsock_remove_connected() if a signal is received\nwhile waiting for a connection. This is harmless if the socket is not in\nthe connected table, and if it is in the table then removing it will\nprevent list corruption from a double add.\n\nNote for backporting: this patch requires d5afa82c977e (\"vsock: correct\nremoval of socket from the list\"), which is in all current stable trees\nexcept 4.9.y.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: vsock: elimina vsock de la tabla conectada cuando la conexión es interrumpida por una señal vsock_connect() espera que el socket ya esté en el estado TCP_ESTABLISHED cuando la tarea de conexión se activa con una señal pendiente. Si esto sucede, el socket estará en la tabla conectada y no se eliminará cuando se restablezca el estado del socket. En esta situación, es común que el proceso vuelva a intentar conectar() y, si la conexión es exitosa, el socket se agregará a la tabla conectada por segunda vez, corrompiendo la lista. Evite esto llamando a vsock_remove_connected() si se recibe una señal mientras se espera una conexión. Esto es inofensivo si el socket no está en la tabla conectada, y si está en la tabla, eliminarlo evitará la corrupción de la lista debido a una doble adición. Nota para la compatibilidad: este parche requiere d5afa82c977e (\"vsock: eliminación correcta del socket de la lista\"), que se encuentra en todos los árboles estables actuales excepto 4.9.y.","source":"nvd"}],"published":"2024-07-16T11:43:43.677Z","modified":"2026-08-05T08:52:16.369Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"}],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"d021c344051af91f42c5ba9fdedc176740cbd238","fixed":"0bb88f3f7e8d506f3efe46d694964117e20efbfc","status":"affected"},{"type":"git","introduced":"d021c344051af91f42c5ba9fdedc176740cbd238","fixed":"e3b3939fd137aab6d00d54bee0ee9244b286a608","status":"affected"},{"type":"git","introduced":"d021c344051af91f42c5ba9fdedc176740cbd238","fixed":"2910bcb9f67551a45397735e47b6d456eb8cd549","status":"affected"},{"type":"git","introduced":"d021c344051af91f42c5ba9fdedc176740cbd238","fixed":"5f326fe2aef411a6575628f92bd861463ea91df7","status":"affected"},{"type":"git","introduced":"d021c344051af91f42c5ba9fdedc176740cbd238","fixed":"87cd1bbd6677411e17369cd4b7389ab1e1fdba44","status":"affected"},{"type":"git","introduced":"d021c344051af91f42c5ba9fdedc176740cbd238","fixed":"787468ee7a435777521d33399d012fd591ae2f94","status":"affected"},{"type":"git","introduced":"d021c344051af91f42c5ba9fdedc176740cbd238","fixed":"addd62a8cb6fa90aa322365c62487da61f6baab8","status":"affected"},{"type":"git","introduced":"d021c344051af91f42c5ba9fdedc176740cbd238","fixed":"b9208492fcaecff8f43915529ae34b3bcb03877c","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"3.9","status":"affected"},{"type":"semver","introduced":"0","fixed":"3.9","status":"unaffected"},{"type":"semver","introduced":"4.9.303","lastAffected":"4.9.*","status":"unaffected"},{"type":"semver","introduced":"4.14.268","lastAffected":"4.14.*","status":"unaffected"},{"type":"semver","introduced":"4.19.231","lastAffected":"4.19.*","status":"unaffected"},{"type":"semver","introduced":"5.4.181","lastAffected":"5.4.*","status":"unaffected"},{"type":"semver","introduced":"5.10.102","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.25","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"5.16.11","lastAffected":"5.16.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"5.17","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"3.9","fixed":"4.9.303"},{"status":"affected","introduced":"4.10","fixed":"4.14.268"},{"status":"affected","introduced":"4.15","fixed":"4.19.231"},{"status":"affected","introduced":"4.20","fixed":"5.4.181"},{"status":"affected","introduced":"5.5","fixed":"5.10.102"},{"status":"affected","introduced":"5.11","fixed":"5.15.25"},{"status":"affected","introduced":"5.16","fixed":"5.16.11"},{"status":"affected","version":"5.17"},{"status":"affected","version":"5.17"},{"status":"affected","version":"5.17"},{"status":"affected","version":"5.17"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/0bb88f3f7e8d506f3efe46d694964117e20efbfc","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/e3b3939fd137aab6d00d54bee0ee9244b286a608","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/2910bcb9f67551a45397735e47b6d456eb8cd549","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/5f326fe2aef411a6575628f92bd861463ea91df7","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/87cd1bbd6677411e17369cd4b7389ab1e1fdba44","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/787468ee7a435777521d33399d012fd591ae2f94","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/addd62a8cb6fa90aa322365c62487da61f6baab8","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/b9208492fcaecff8f43915529ae34b3bcb03877c","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2024-09-10T16:59:52.125Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-48786","url":"https://www.cve.org/CVERecord?id=CVE-2022-48786","licence":"CVE Terms of Use","modified":"2026-08-05T08:52:16.369Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-48786","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-48786","licence":"Public domain","modified":"2026-08-04T10:17:20.790Z"}],"updatedAt":"2026-11-25T22:58:19.881Z","epss":{"score":0.00251,"percentile":0.17709,"date":"2026-12-01T12:00:22.000Z"}}