Description (CNA)
In the Linux kernel, the following vulnerability has been resolved: llc: fix skb UAF and leaks on llc_mac_hdr_init() failure In llc_conn_ac_resend_i_xxx_x_set_0_or_send_rr(), if llc_mac_hdr_init() fails, kfree_skb(skb) is called instead of kfree_skb(nskb). This leaks the newly allocated nskb, reads from the freed skb via LLC_I_GET_NR(pdu), and double-frees skb when llc_conn_state_process() drops its reference. In llc_sap_action_send_xid_r() and llc_sap_action_send_test_r(), nskb is leaked if llc_mac_hdr_init() returns an error. Free nskb in all three error paths.
Affected (CNA)
| Vendor / product | Versions |
|---|---|
| Linux / Linux | affected 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before fec0fe6838a7f45175667701fb51abb23a6ffb1e; affected 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before b859ba18b5a1067f71db5618c6a4a70d55fa308b; affected 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before 8b855b645841b5a04e20339a22bb6d593c9b790d; affected 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before d360b31f1a3666579422872aa7d1a751e20b76f9; affected 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before 060f827aa3dc47939ee306da715cd6700d129616; affected 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before 41dcae82bece9f106b4dff0ee777bba8d157c8a8; affected 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before cb3528ad8bb46fa6252f5d14ced7febddc18515d; affected 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before 72f9dd522f8d6c5a00be9695c7bb74631eb5069e |
| Linux / Linux | affected 2.6.12; unaffected 0 before 2.6.12; unaffected 5.10.271 through 5.10.*; unaffected 5.15.222 through 5.15.*; unaffected 6.1.189 through 6.1.*; unaffected 6.6.158 through 6.6.*; unaffected 6.12.112 through 6.12.*; unaffected 6.18.55 through 6.18.*; unaffected 7.2.9 through 7.2.*; unaffected 7.3 through * |
CWE
No CWE identifiers supplied.
References
- https://git.kernel.org/stable/c/fec0fe6838a7f45175667701fb51abb23a6ffb1e
- https://git.kernel.org/stable/c/b859ba18b5a1067f71db5618c6a4a70d55fa308b
- https://git.kernel.org/stable/c/8b855b645841b5a04e20339a22bb6d593c9b790d
- https://git.kernel.org/stable/c/d360b31f1a3666579422872aa7d1a751e20b76f9
- https://git.kernel.org/stable/c/060f827aa3dc47939ee306da715cd6700d129616
- https://git.kernel.org/stable/c/41dcae82bece9f106b4dff0ee777bba8d157c8a8
- https://git.kernel.org/stable/c/cb3528ad8bb46fa6252f5d14ced7febddc18515d
- https://git.kernel.org/stable/c/72f9dd522f8d6c5a00be9695c7bb74631eb5069e