Skip to contentSkip to conversation

Backport of 67c37756898a ("tty: n_gsm: require CAP_NET_ADMIN to attach N_GSM0710 ldisc") to older stable series? (at least 6.1.y)

DISCUSSION Salvatore Bonaccorso 2 participants 2 messages Apr 10, 2024 Stable branch

lore
Share & tools
lore
#0 lore raw

Hi Greg, Sasha, Thadeu,

Today there was mentioning of

https://www.jmpeax.dev/The-tale-of-a-GSM-Kernel-LPE.html

a LPE from the n_gsm module. I do realize, Thadeu mentioned the possible attack surface already back in

https://lore.kernel.org/all/[email protected]/#t

Published exploits are referenced as well through the potential initial finder in https://github.com/YuriiCrimson/ExploitGSM .

While 67c37756898a ("tty: n_gsm: require CAP_NET_ADMIN to attach N_GSM0710 ldisc") is not the fix itself, it helps mitigating against this issue.

Thus can you consider applying this still to the stable series as needed? I think it should go at least back to 5.15.y but if Iunderstood Thadeu correctly then even further back to the still supported stable branches.

What do you think?

Regards,
Salvatore

#1 lore raw
Quoted 18 lines · Salvatore Bonaccorso

Hi Greg, Sasha, Thadeu,

Today there was mentioning of

https://www.jmpeax.dev/The-tale-of-a-GSM-Kernel-LPE.html

a LPE from the n_gsm module. I do realize, Thadeu mentioned the possible attack surface already back in

https://lore.kernel.org/all/[email protected]/#t

Published exploits are referenced as well through the potential initial finder in https://github.com/YuriiCrimson/ExploitGSM .

While 67c37756898a ("tty: n_gsm: require CAP_NET_ADMIN to attach N_GSM0710 ldisc") is not the fix itself, it helps mitigating against this issue.

Quoted 6 lines

Thus can you consider applying this still to the stable series as needed? I think it should go at least back to 5.15.y but if Iunderstood Thadeu correctly then even further back to the still supported stable branches.

What do you think?

Sure, I'll queue it up. I think the "real" bugs there are already resolved in the various older kernel trees, but adding this is "defense in depth" and makes sense.

thanks,

greg k-h