<?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>Tue, 29 Sep 2026 09:27:49 +0000</lastBuildDate>
    <item>
      <title>CVE-2024-35977 — platform/chrome: cros_ec_uart: properly fix race condition</title>
      <link>https://vulnerability.circl.lu/vuln/cve-2024-35977</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;platform/chrome: cros_ec_uart: properly fix race condition&lt;/p&gt;
&lt;p&gt;The cros_ec_uart_probe() function calls devm_serdev_device_open() before
it calls serdev_device_set_client_ops(). This can trigger a NULL pointer
dereference:&lt;/p&gt;
&lt;p&gt;BUG: kernel NULL pointer dereference, address: 0000000000000000
    ...
    Call Trace:
     &amp;lt;TASK&amp;gt;
     ...
     ? ttyport_receive_buf&lt;/p&gt;
&lt;p&gt;A simplified version of crashing code is as follows:&lt;/p&gt;
&lt;p&gt;static inline size_t serdev_controller_receive_buf(struct serdev_controller *ctrl,
                                                      const u8 *data,
                                                      size_t count)
    {
            struct serdev_device *serdev = ctrl-&amp;gt;serdev;&lt;/p&gt;
&lt;p&gt;if (!serdev || !serdev-&amp;gt;ops-&amp;gt;receive_buf) // CRASH!
                return 0;&lt;/p&gt;
&lt;p&gt;return serdev-&amp;gt;ops-&amp;gt;receive_buf(serdev, data, count);
    }&lt;/p&gt;
&lt;p&gt;It assumes that if SERPORT_ACTIVE is set and serdev exists, serdev-&amp;gt;ops
will also exist. This conflicts with the existing cros_ec_uart_probe()
logic, as it first calls devm_serdev_device_open() (which sets
SERPORT_ACTIVE), and only later sets serdev-&amp;gt;ops via
serdev_device_set_client_ops().&lt;/p&gt;
&lt;p&gt;Commit 01f95d42b8f4 (&amp;#34;platform/chrome: cros_ec_uart: fix race
condition&amp;#34;) attempted to fix a similar race condition, but while doing
so, made the window of error for this race condition to happen much
wider.&lt;/p&gt;
&lt;p&gt;Attempt to fix the race condition again, making sure we fully…&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;platform/chrome: cros_ec_uart: properly fix race condition&lt;/p&gt;
&lt;p&gt;The cros_ec_uart_probe() function calls devm_serdev_device_open() before
it calls serdev_device_set_client_ops(). This can trigger a NULL pointer
dereference:&lt;/p&gt;
&lt;p&gt;BUG: kernel NULL pointer dereference, address: 0000000000000000
    ...
    Call Trace:
     &amp;lt;TASK&amp;gt;
     ...
     ? ttyport_receive_buf&lt;/p&gt;
&lt;p&gt;A simplified version of crashing code is as follows:&lt;/p&gt;
&lt;p&gt;static inline size_t serdev_controller_receive_buf(struct serdev_controller *ctrl,
                                                      const u8 *data,
                                                      size_t count)
    {
            struct serdev_device *serdev = ctrl-&amp;gt;serdev;&lt;/p&gt;
&lt;p&gt;if (!serdev || !serdev-&amp;gt;ops-&amp;gt;receive_buf) // CRASH!
                return 0;&lt;/p&gt;
&lt;p&gt;return serdev-&amp;gt;ops-&amp;gt;receive_buf(serdev, data, count);
    }&lt;/p&gt;
&lt;p&gt;It assumes that if SERPORT_ACTIVE is set and serdev exists, serdev-&amp;gt;ops
will also exist. This conflicts with the existing cros_ec_uart_probe()
logic, as it first calls devm_serdev_device_open() (which sets
SERPORT_ACTIVE), and only later sets serdev-&amp;gt;ops via
serdev_device_set_client_ops().&lt;/p&gt;
&lt;p&gt;Commit 01f95d42b8f4 (&amp;#34;platform/chrome: cros_ec_uart: fix race
condition&amp;#34;) attempted to fix a similar race condition, but while doing
so, made the window of error for this race condition to happen much
wider.&lt;/p&gt;
&lt;p&gt;Attempt to fix the race condition again, making sure we fully…&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://vulnerability.circl.lu/vuln/cve-2024-35977</guid>
    </item>
  </channel>
</rss>
