Skip to content

stop exempting VPN app from leak blocking#315

Open
liamsmith827 wants to merge 2 commits intoGrapheneOS:16-qpr2from
liamsmith827:16-qpr2_02-23_protected-sockets
Open

stop exempting VPN app from leak blocking#315
liamsmith827 wants to merge 2 commits intoGrapheneOS:16-qpr2from
liamsmith827:16-qpr2_02-23_protected-sockets

Conversation

@liamsmith827
Copy link

@liamsmith827 liamsmith827 commented Feb 24, 2026

Android provides VPN apps the capability to protect sockets that should bypass
the tunnel and leak blocking protection. It is then expected that any socket
that is not protected should not get a bypass. This is clearly documented and
easy for VPN app developers to implement. However, Android decided that some VPN
apps might forget to protect their sockets and added an exemption that allows
the VPN app to bypass leak blocking protection, even for unprotected sockets. As
a result of this exemption, the VPN app has no way to force traffic through the
tunnel, so anything it wishes to send through the tunnel is subject to being
leaked.

This change removes the exemption. If a VPN app breaks due to this change it is,
by definition, a broken app that was being saved by a workaround. The developers
should fix it. Disabling leak blocking for that app will allow it to work again.
If the app can't get protected sockets right, it probably isn't preventing leaks
in the first place.

GrapheneOS/platform_packages_modules_NetworkStack#17
GrapheneOS/platform_packages_modules_Connectivity#38

GrapheneOS/os-issue-tracker#5273

Android provides VPN apps the capability to protect sockets that should bypass
the tunnel and leak blocking protection. It is then expected that any socket
that is not protected should not get a bypass. This is clearly documented and
easy for VPN app developers to implement. However, Android decided that some VPN
apps might forget to protect their sockets and added an exemption that allows
the VPN app to bypass leak blocking protection, even for unprotected sockets. As
a result of this exemption, the VPN app has no way to force traffic through the
tunnel, so anything it wishes to send through the tunnel is subject to being
leaked.

This change removes the exemption. If a VPN app breaks due to this change it is,
by definition, a broken app that was being saved by a workaround. The developers
should fix it. Disabling leak blocking for that app will allow it to work again.
If the app can't get protected sockets right, it probably isn't preventing leaks
in the first place.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant