<?xml version='1.0' encoding='UTF-8'?>
<?xml-stylesheet href="/static/style.xsl" type="text/xsl"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/" version="2.0">
  <channel>
    <title>Most recent entries from all</title>
    <link>https://vulnerability.circl.lu</link>
    <description>Contains only the most 10 recent entries.</description>
    <docs>http://www.rssboard.org/rss-specification</docs>
    <generator>python-feedgen</generator>
    <language>en</language>
    <lastBuildDate>Thu, 01 Oct 2026 20:01:17 +0000</lastBuildDate>
    <item>
      <title>CVE-2024-56633 — tcp_bpf: Fix the sk_mem_uncharge logic in tcp_bpf_sendmsg</title>
      <link>https://vulnerability.circl.lu/vuln/cve-2024-56633</link>
      <description>&lt;p&gt;&lt;strong&gt;Affected:&lt;/strong&gt; Linux&lt;/p&gt;
&lt;p&gt;In the Linux kernel, the following vulnerability has been resolved:&lt;/p&gt;
&lt;p&gt;tcp_bpf: Fix the sk_mem_uncharge logic in tcp_bpf_sendmsg&lt;/p&gt;
&lt;p&gt;The current sk memory accounting logic in __SK_REDIRECT is pre-uncharging
tosend bytes, which is either msg-&amp;gt;sg.size or a smaller value apply_bytes.&lt;/p&gt;
&lt;p&gt;Potential problems with this strategy are as follows:&lt;/p&gt;
&lt;p&gt;- If the actual sent bytes are smaller than tosend, we need to charge some
  bytes back, as in line 487, which is okay but seems not clean.&lt;/p&gt;
&lt;p&gt;- When tosend is set to apply_bytes, as in line 417, and (ret &amp;lt; 0), we may
  miss uncharging (msg-&amp;gt;sg.size - apply_bytes) bytes.&lt;/p&gt;
&lt;p&gt;[...]
415 tosend = msg-&amp;gt;sg.size;
416 if (psock-&amp;gt;apply_bytes &amp;amp;&amp;amp; psock-&amp;gt;apply_bytes &amp;lt; tosend)
417   tosend = psock-&amp;gt;apply_bytes;
[...]
443 sk_msg_return(sk, msg, tosend);
444 release_sock(sk);
446 origsize = msg-&amp;gt;sg.size;
447 ret = tcp_bpf_sendmsg_redir(sk_redir, redir_ingress,
448                             msg, tosend, flags);
449 sent = origsize - msg-&amp;gt;sg.size;
[...]
454 lock_sock(sk);
455 if (unlikely(ret &amp;lt; 0)) {
456   int free = sk_msg_free_nocharge(sk, msg);
458   if (!cork)
459     *copied -= free;
460 }
[...]
487 if (eval == __SK_REDIRECT)
488   sk_mem_charge(sk, tosend - sent);
[...]&lt;/p&gt;
&lt;p&gt;When running the selftest test_txmsg_redir_wait_sndmem with txmsg_apply,
the following warning will be reported:&lt;/p&gt;
&lt;p&gt;------------[ cut here ]------------
WARNING: CPU: 6 PID: 57 at net/ipv4/af_inet.c:156 inet_sock_destruct+0x190/0x1a0
Modules linked in:
CPU: 6 UID: 0 PID: 57 Comm: kworker/6:0 Not…&lt;/p&gt;</description>
      <content:encoded>&lt;p&gt;&lt;strong&gt;Affected:&lt;/strong&gt; Linux&lt;/p&gt;
&lt;p&gt;In the Linux kernel, the following vulnerability has been resolved:&lt;/p&gt;
&lt;p&gt;tcp_bpf: Fix the sk_mem_uncharge logic in tcp_bpf_sendmsg&lt;/p&gt;
&lt;p&gt;The current sk memory accounting logic in __SK_REDIRECT is pre-uncharging
tosend bytes, which is either msg-&amp;gt;sg.size or a smaller value apply_bytes.&lt;/p&gt;
&lt;p&gt;Potential problems with this strategy are as follows:&lt;/p&gt;
&lt;p&gt;- If the actual sent bytes are smaller than tosend, we need to charge some
  bytes back, as in line 487, which is okay but seems not clean.&lt;/p&gt;
&lt;p&gt;- When tosend is set to apply_bytes, as in line 417, and (ret &amp;lt; 0), we may
  miss uncharging (msg-&amp;gt;sg.size - apply_bytes) bytes.&lt;/p&gt;
&lt;p&gt;[...]
415 tosend = msg-&amp;gt;sg.size;
416 if (psock-&amp;gt;apply_bytes &amp;amp;&amp;amp; psock-&amp;gt;apply_bytes &amp;lt; tosend)
417   tosend = psock-&amp;gt;apply_bytes;
[...]
443 sk_msg_return(sk, msg, tosend);
444 release_sock(sk);
446 origsize = msg-&amp;gt;sg.size;
447 ret = tcp_bpf_sendmsg_redir(sk_redir, redir_ingress,
448                             msg, tosend, flags);
449 sent = origsize - msg-&amp;gt;sg.size;
[...]
454 lock_sock(sk);
455 if (unlikely(ret &amp;lt; 0)) {
456   int free = sk_msg_free_nocharge(sk, msg);
458   if (!cork)
459     *copied -= free;
460 }
[...]
487 if (eval == __SK_REDIRECT)
488   sk_mem_charge(sk, tosend - sent);
[...]&lt;/p&gt;
&lt;p&gt;When running the selftest test_txmsg_redir_wait_sndmem with txmsg_apply,
the following warning will be reported:&lt;/p&gt;
&lt;p&gt;------------[ cut here ]------------
WARNING: CPU: 6 PID: 57 at net/ipv4/af_inet.c:156 inet_sock_destruct+0x190/0x1a0
Modules linked in:
CPU: 6 UID: 0 PID: 57 Comm: kworker/6:0 Not…&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://vulnerability.circl.lu/vuln/cve-2024-56633</guid>
    </item>
  </channel>
</rss>
