llc: fix SAP refcount leak in llc_ui_autobind()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 · < 61a7ff4a62003b55a15022567486741b3bd83914| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
llc: fix SAP refcount leak in llc_ui_autobind()
llc_ui_autobind() opens a SAP after choosing a dynamic LSAP. llc_sap_open() returns a reference owned by the caller, and llc_sap_add_socket() takes a second reference for the socket's membership in the SAP hash tables.
llc_ui_bind() drops the caller's reference after adding the socket, but llc_ui_autobind() keeps it. When the socket is closed, llc_sap_remove_socket() releases only the socket reference, leaving the SAP on llc_sap_list with sk_count == 0.
This is user-visible because repeated autobind and close cycles can consume all dynamic SAP values and make later autobinds fail with -EUSERS.
Drop the caller's reference after a successful autobind, matching llc_ui_bind()'s ownership model.
From the CVE record · Linux
The Linux kernel’s LLC autobind path leaks a SAP reference when a socket is closed. A local user able to create and close LLC sockets can repeat the cycle until dynamic SAP values are exhausted, causing later autobinds to fail.
Engineers running Linux kernels with the affected LLC autobind code should check their systems; affected versions were not provided.