Linux
net/iucv: fix use-after-free of a severed iucv_path
In the Linux kernel, the following vulnerability has been resolved: net/iucv: fix use-after-free of a severed iucv_path af_iucv queues not-yet-received message notifications on iucv->message_q, each holding a raw pointer to the connection's iucv_path. When the peer severs the connection, iucv_sever_path() frees that path with iucv_path_free() but leaves the notifications queued. A later recvmsg() drains message_q via iucv_process_message_q() and hands the stale path to message_receive() -- a use-after-free of the freed iucv_path. Drop the queued notifications when the path is severed; once the path is gone they can no longer be received. This also frees the notifications leaked when a socket is closed with messages still queued.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= f0703c80e5156406ad947cb67fe277725b48080f, < 5f08c5e50bcb4680069bd3f9edd5728308816ded
- >= f0703c80e5156406ad947cb67fe277725b48080f, < c24faf11bd31bfe0500aca12cbdd5a573a954a5d
- >= f0703c80e5156406ad947cb67fe277725b48080f, < 99ddb33748698296a6f17b9b34aa3d16a406bb3c
- >= f0703c80e5156406ad947cb67fe277725b48080f, < 23658b350b4107e8292045c2044983fd426fa15d
- >= f0703c80e5156406ad947cb67fe277725b48080f, < a5bbaddf69853117f28173c3f5c8fc14c6b2ec82
- >= f0703c80e5156406ad947cb67fe277725b48080f, < 900cd6d8119b7f3ae5c4bf82f922ff5957df43db
- >= f0703c80e5156406ad947cb67fe277725b48080f, < f579582c03ed526281a8450159baf1d35099a85f
- >= f0703c80e5156406ad947cb67fe277725b48080f, < be7cc4656eb1f54029610e82d1f0fdd3f9b5ec0a
Fixed in 5f08c5e50bcb4680069bd3f9edd5728308816ded, c24faf11bd31bfe0500aca12cbdd5a573a954a5d, 99ddb33748698296a6f17b9b34aa3d16a406bb3c, 23658b350b4107e8292045c2044983fd426fa15d, a5bbaddf69853117f28173c3f5c8fc14c6b2ec82, 900cd6d8119b7f3ae5c4bf82f922ff5957df43db, f579582c03ed526281a8450159baf1d35099a85f, be7cc4656eb1f54029610e82d1f0fdd3f9b5ec0a
- 2.6.24
Fixed in 0, 5.10.265, 5.15.216, 6.1.183, 6.6.148, 6.12.101, 6.18.42, 7.1.6, 7.2
Mitigation
Upgrade Linux to 5f08c5e50bcb4680069bd3f9edd5728308816ded or c24faf11bd31bfe0500aca12cbdd5a573a954a5d or 99ddb33748698296a6f17b9b34aa3d16a406bb3c or 23658b350b4107e8292045c2044983fd426fa15d or a5bbaddf69853117f28173c3f5c8fc14c6b2ec82 or 900cd6d8119b7f3ae5c4bf82f922ff5957df43db or f579582c03ed526281a8450159baf1d35099a85f or be7cc4656eb1f54029610e82d1f0fdd3f9b5ec0a or later.
Upgrade Linux to 0 or 5.10.265 or 5.15.216 or 6.1.183 or 6.6.148 or 6.12.101 or 6.18.42 or 7.1.6 or 7.2 or later.
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.