<?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 21:41:14 +0000</lastBuildDate>
    <item>
      <title>CVE-2025-39828 — atm: atmtcp: Prevent arbitrary write in atmtcp_recv_control().</title>
      <link>https://vulnerability.circl.lu/vuln/cve-2025-39828</link>
      <description>&lt;p&gt;&lt;strong&gt;Affected:&lt;/strong&gt; Linux, Siemens SIMATIC CN 4100&lt;/p&gt;
&lt;p&gt;In the Linux kernel, the following vulnerability has been resolved:&lt;/p&gt;
&lt;p&gt;atm: atmtcp: Prevent arbitrary write in atmtcp_recv_control().&lt;/p&gt;
&lt;p&gt;syzbot reported the splat below. [0]&lt;/p&gt;
&lt;p&gt;When atmtcp_v_open() or atmtcp_v_close() is called via connect()
or close(), atmtcp_send_control() is called to send an in-kernel
special message.&lt;/p&gt;
&lt;p&gt;The message has ATMTCP_HDR_MAGIC in atmtcp_control.hdr.length.
Also, a pointer of struct atm_vcc is set to atmtcp_control.vcc.&lt;/p&gt;
&lt;p&gt;The notable thing is struct atmtcp_control is uAPI but has a
space for an in-kernel pointer.&lt;/p&gt;
&lt;p&gt;struct atmtcp_control {
  	struct atmtcp_hdr hdr;	/* must be first */
  ...
  	atm_kptr_t vcc;		/* both directions */
  ...
  } __ATM_API_ALIGN;&lt;/p&gt;
&lt;p&gt;typedef struct { unsigned char _[8]; } __ATM_API_ALIGN atm_kptr_t;&lt;/p&gt;
&lt;p&gt;The special message is processed in atmtcp_recv_control() called
from atmtcp_c_send().&lt;/p&gt;
&lt;p&gt;atmtcp_c_send() is vcc-&amp;gt;dev-&amp;gt;ops-&amp;gt;send() and called from 2 paths:&lt;/p&gt;
&lt;p&gt;1. .ndo_start_xmit() (vcc-&amp;gt;send() == atm_send_aal0())
  2. vcc_sendmsg()&lt;/p&gt;
&lt;p&gt;The problem is sendmsg() does not validate the message length and
userspace can abuse atmtcp_recv_control() to overwrite any kptr
by atmtcp_control.&lt;/p&gt;
&lt;p&gt;Let&amp;#39;s add a new -&amp;gt;pre_send() hook to validate messages from sendmsg().&lt;/p&gt;
&lt;p&gt;[0]:
Oops: general protection fault, probably for non-canonical address 0xdffffc00200000ab: 0000 [#1] SMP KASAN PTI
KASAN: probably user-memory-access in range [0x0000000100000558-0x000000010000055f]
CPU: 0 UID: 0 PID: 5865 Comm: syz-executor331 Not tainted 6.17.0-rc1-syzkaller-00215-gb…&lt;/p&gt;</description>
      <content:encoded>&lt;p&gt;&lt;strong&gt;Affected:&lt;/strong&gt; Linux, Siemens SIMATIC CN 4100&lt;/p&gt;
&lt;p&gt;In the Linux kernel, the following vulnerability has been resolved:&lt;/p&gt;
&lt;p&gt;atm: atmtcp: Prevent arbitrary write in atmtcp_recv_control().&lt;/p&gt;
&lt;p&gt;syzbot reported the splat below. [0]&lt;/p&gt;
&lt;p&gt;When atmtcp_v_open() or atmtcp_v_close() is called via connect()
or close(), atmtcp_send_control() is called to send an in-kernel
special message.&lt;/p&gt;
&lt;p&gt;The message has ATMTCP_HDR_MAGIC in atmtcp_control.hdr.length.
Also, a pointer of struct atm_vcc is set to atmtcp_control.vcc.&lt;/p&gt;
&lt;p&gt;The notable thing is struct atmtcp_control is uAPI but has a
space for an in-kernel pointer.&lt;/p&gt;
&lt;p&gt;struct atmtcp_control {
  	struct atmtcp_hdr hdr;	/* must be first */
  ...
  	atm_kptr_t vcc;		/* both directions */
  ...
  } __ATM_API_ALIGN;&lt;/p&gt;
&lt;p&gt;typedef struct { unsigned char _[8]; } __ATM_API_ALIGN atm_kptr_t;&lt;/p&gt;
&lt;p&gt;The special message is processed in atmtcp_recv_control() called
from atmtcp_c_send().&lt;/p&gt;
&lt;p&gt;atmtcp_c_send() is vcc-&amp;gt;dev-&amp;gt;ops-&amp;gt;send() and called from 2 paths:&lt;/p&gt;
&lt;p&gt;1. .ndo_start_xmit() (vcc-&amp;gt;send() == atm_send_aal0())
  2. vcc_sendmsg()&lt;/p&gt;
&lt;p&gt;The problem is sendmsg() does not validate the message length and
userspace can abuse atmtcp_recv_control() to overwrite any kptr
by atmtcp_control.&lt;/p&gt;
&lt;p&gt;Let&amp;#39;s add a new -&amp;gt;pre_send() hook to validate messages from sendmsg().&lt;/p&gt;
&lt;p&gt;[0]:
Oops: general protection fault, probably for non-canonical address 0xdffffc00200000ab: 0000 [#1] SMP KASAN PTI
KASAN: probably user-memory-access in range [0x0000000100000558-0x000000010000055f]
CPU: 0 UID: 0 PID: 5865 Comm: syz-executor331 Not tainted 6.17.0-rc1-syzkaller-00215-gb…&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://vulnerability.circl.lu/vuln/cve-2025-39828</guid>
    </item>
  </channel>
</rss>
