Try exploiting ESP6 as well#14
Open
ziyao233 wants to merge 2 commits into
Open
Conversation
a7d28e8 to
2b86599
Compare
For confirming the issue on systems with only CONFIG_INET6_ESP enabled. Signed-off-by: Yao Zi <me@ziyao.cc>
2b86599 to
191fe97
Compare
Signed-off-by: Yao Zi <me@ziyao.cc>
opsiff
pushed a commit
to opsiff/UOS-kernel
that referenced
this pull request
May 8, 2026
…are present maillist inclusion category: bugfix The DATA-packet handler in rxrpc_input_call_event() and the RESPONSE handler in rxrpc_verify_response() copy the skb to a linear one before calling into the security ops only when skb_cloned() is true. An skb that is not cloned but still carries paged fragments (skb->data_len != 0) falls through to the in-place decryption path, which binds the frag pages directly into the AEAD/skcipher SGL via skb_to_sgvec(). Extend the gate so that any skb with non-linear data is also copied, ensuring the security handler always operates on a fully linear skb. The OOM/trace handling already in place is reused. Fixes: d0d5c0c ("rxrpc: Use skb_unshare() rather than skb_cow_data()") Signed-off-by: Hyunwoo Kim <imv4bel@gmail.com> Link: https://dirtyfrag.io/ Link: https://git.kernel.org/pub/scm/linux/kernel/git/netdev/net.git/commit/?id=f4c50a4034e62ab75f1d5cdd191dd5f9c77fdff4 Link: https://lore.kernel.org/all/afKV2zGR6rrelPC7@v4bel/ Link: https://github.com/V4bel/dirtyfrag/blob/master/exp.c Link: https://seclists.org/oss-sec/2026/q2/434 Link: V4bel/dirtyfrag#14 Link: https://afflicted.sh/blog/posts/copy-fail-2.html Link: https://almalinux.org/blog/2026-05-07-dirty-frag/ Link: https://www.phoronix.com/news/Dirty-Frag-Linux Signed-off-by: Wentao Guan <guanwentao@uniontech.com>
opsiff
pushed a commit
to deepin-community/kernel
that referenced
this pull request
May 8, 2026
…are present maillist inclusion category: bugfix The DATA-packet handler in rxrpc_input_call_event() and the RESPONSE handler in rxrpc_verify_response() copy the skb to a linear one before calling into the security ops only when skb_cloned() is true. An skb that is not cloned but still carries paged fragments (skb->data_len != 0) falls through to the in-place decryption path, which binds the frag pages directly into the AEAD/skcipher SGL via skb_to_sgvec(). Extend the gate so that any skb with non-linear data is also copied, ensuring the security handler always operates on a fully linear skb. The OOM/trace handling already in place is reused. Fixes: d0d5c0c ("rxrpc: Use skb_unshare() rather than skb_cow_data()") Signed-off-by: Hyunwoo Kim <imv4bel@gmail.com> Link: https://dirtyfrag.io/ Link: https://git.kernel.org/pub/scm/linux/kernel/git/netdev/net.git/commit/?id=f4c50a4034e62ab75f1d5cdd191dd5f9c77fdff4 Link: https://lore.kernel.org/all/afKV2zGR6rrelPC7@v4bel/ Link: https://github.com/V4bel/dirtyfrag/blob/master/exp.c Link: https://seclists.org/oss-sec/2026/q2/434 Link: V4bel/dirtyfrag#14 Link: https://afflicted.sh/blog/posts/copy-fail-2.html Link: https://almalinux.org/blog/2026-05-07-dirty-frag/ Link: https://www.phoronix.com/news/Dirty-Frag-Linux Signed-off-by: Wentao Guan <guanwentao@uniontech.com>
opsiff
pushed a commit
to opsiff/UOS-kernel
that referenced
this pull request
May 8, 2026
…are present The DATA-packet handler in rxrpc_input_call_event() and the RESPONSE handler in rxrpc_verify_response() copy the skb to a linear one before calling into the security ops only when skb_cloned() is true. An skb that is not cloned but still carries paged fragments (skb->data_len != 0) falls through to the in-place decryption path, which binds the frag pages directly into the AEAD/skcipher SGL via skb_to_sgvec(). Extend the gate so that any skb with non-linear data is also copied, ensuring the security handler always operates on a fully linear skb. The OOM/trace handling already in place is reused. Fixes: d0d5c0c ("rxrpc: Use skb_unshare() rather than skb_cow_data()") Cc: stable@vger.kernel.org Signed-off-by: Hyunwoo Kim <imv4bel@gmail.com> Link: https://dirtyfrag.io/ Link: https://git.kernel.org/pub/scm/linux/kernel/git/netdev/net.git/commit/?id=f4c50a4034e62ab75f1d5cdd191dd5f9c77fdff4 Link: https://lore.kernel.org/all/afKV2zGR6rrelPC7@v4bel/ Link: https://github.com/V4bel/dirtyfrag/blob/master/exp.c Link: https://seclists.org/oss-sec/2026/q2/434 Link: V4bel/dirtyfrag#14 Link: https://afflicted.sh/blog/posts/copy-fail-2.html Link: https://almalinux.org/blog/2026-05-07-dirty-frag/ Link: https://www.phoronix.com/news/Dirty-Frag-Linux Signed-off-by: Wentao Guan <guanwentao@uniontech.com>
opsiff
pushed a commit
to opsiff/UOS-kernel
that referenced
this pull request
May 8, 2026
…are present The DATA-packet handler in rxrpc_input_call_event() and the RESPONSE handler in rxrpc_verify_response() copy the skb to a linear one before calling into the security ops only when skb_cloned() is true. An skb that is not cloned but still carries paged fragments (skb->data_len != 0) falls through to the in-place decryption path, which binds the frag pages directly into the AEAD/skcipher SGL via skb_to_sgvec(). Extend the gate so that any skb with non-linear data is also copied, ensuring the security handler always operates on a fully linear skb. The OOM/trace handling already in place is reused. Fixes: d0d5c0c ("rxrpc: Use skb_unshare() rather than skb_cow_data()") Cc: stable@vger.kernel.org Signed-off-by: Hyunwoo Kim <imv4bel@gmail.com> Link: https://dirtyfrag.io/ Link: https://git.kernel.org/pub/scm/linux/kernel/git/netdev/net.git/commit/?id=f4c50a4034e62ab75f1d5cdd191dd5f9c77fdff4 Link: https://lore.kernel.org/all/afKV2zGR6rrelPC7@v4bel/ Link: https://github.com/V4bel/dirtyfrag/blob/master/exp.c Link: https://seclists.org/oss-sec/2026/q2/434 Link: V4bel/dirtyfrag#14 Link: https://afflicted.sh/blog/posts/copy-fail-2.html Link: https://almalinux.org/blog/2026-05-07-dirty-frag/ Link: https://www.phoronix.com/news/Dirty-Frag-Linux Signed-off-by: Wentao Guan <guanwentao@uniontech.com>
opsiff
pushed a commit
to opsiff/UOS-kernel
that referenced
this pull request
May 8, 2026
…are present The DATA-packet handler in rxrpc_input_call_event() and the RESPONSE handler in rxrpc_verify_response() copy the skb to a linear one before calling into the security ops only when skb_cloned() is true. An skb that is not cloned but still carries paged fragments (skb->data_len != 0) falls through to the in-place decryption path, which binds the frag pages directly into the AEAD/skcipher SGL via skb_to_sgvec(). Extend the gate so that any skb with non-linear data is also copied, ensuring the security handler always operates on a fully linear skb. The OOM/trace handling already in place is reused. Fixes: d0d5c0c ("rxrpc: Use skb_unshare() rather than skb_cow_data()") Cc: stable@vger.kernel.org Signed-off-by: Hyunwoo Kim <imv4bel@gmail.com> Link: https://dirtyfrag.io/ Link: https://git.kernel.org/pub/scm/linux/kernel/git/netdev/net.git/commit/?id=f4c50a4034e62ab75f1d5cdd191dd5f9c77fdff4 Link: https://lore.kernel.org/all/afKV2zGR6rrelPC7@v4bel/ Link: https://github.com/V4bel/dirtyfrag/blob/master/exp.c Link: https://seclists.org/oss-sec/2026/q2/434 Link: V4bel/dirtyfrag#14 Link: https://afflicted.sh/blog/posts/copy-fail-2.html Link: https://almalinux.org/blog/2026-05-07-dirty-frag/ Link: https://www.phoronix.com/news/Dirty-Frag-Linux Signed-off-by: Wentao Guan <guanwentao@uniontech.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
For confirming the issue on systems with only CONFIG_INET6_ESP enabled.