Bug 2144379 (CVE-2022-41858) - CVE-2022-41858 kernel: null-ptr-deref vulnerabilities in sl_tx_timeout in drivers/net/slip
Summary: CVE-2022-41858 kernel: null-ptr-deref vulnerabilities in sl_tx_timeout in dri...
Keywords:
Status: NEW
Alias: CVE-2022-41858
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Nobody
QA Contact:
URL:
Whiteboard:
Depends On: 2144390 2144391 2144392 2144393
Blocks: 2144381 2144843
TreeView+ depends on / blocked
 
Reported: 2022-11-21 04:02 UTC by Rohit Keshri
Modified: 2024-04-17 19:05 UTC (History)
49 users (show)

Fixed In Version: kernel 5.18 rc2
Doc Type: If docs needed, set a value
Doc Text:
A flaw was found in the Linux kernel. A NULL pointer dereference may occur while a slip driver is in progress to detach in sl_tx_timeout in drivers/net/slip/slip.c. This issue could allow an attacker to crash the system or leak internal kernel information.
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2024:0610 0 None None None 2024-01-30 14:48:29 UTC
Red Hat Product Errata RHBA-2024:0611 0 None None None 2024-01-30 14:52:58 UTC
Red Hat Product Errata RHBA-2024:0688 0 None None None 2024-02-05 17:04:32 UTC
Red Hat Product Errata RHBA-2024:1796 0 None None None 2024-04-11 21:11:59 UTC
Red Hat Product Errata RHSA-2024:0412 0 None None None 2024-01-24 16:42:50 UTC
Red Hat Product Errata RHSA-2024:0431 0 None None None 2024-01-24 15:24:25 UTC
Red Hat Product Errata RHSA-2024:0432 0 None None None 2024-01-24 15:25:12 UTC
Red Hat Product Errata RHSA-2024:0439 0 None None None 2024-01-24 16:35:40 UTC
Red Hat Product Errata RHSA-2024:0448 0 None None None 2024-01-24 16:37:29 UTC
Red Hat Product Errata RHSA-2024:0461 0 None None None 2024-01-24 16:28:34 UTC
Red Hat Product Errata RHSA-2024:0881 0 None None None 2024-02-20 12:27:59 UTC
Red Hat Product Errata RHSA-2024:0897 0 None None None 2024-02-20 12:33:05 UTC
Red Hat Product Errata RHSA-2024:1268 0 None None None 2024-03-12 11:43:03 UTC
Red Hat Product Errata RHSA-2024:1269 0 None None None 2024-03-12 11:46:12 UTC
Red Hat Product Errata RHSA-2024:1367 0 None None None 2024-03-19 00:22:15 UTC
Red Hat Product Errata RHSA-2024:1382 0 None None None 2024-03-19 15:07:33 UTC
Red Hat Product Errata RHSA-2024:1404 0 None None None 2024-03-19 17:26:51 UTC

Description Rohit Keshri 2022-11-21 04:02:58 UTC
There are null-ptr-deref vulnerabilities in drivers/net/slip of linux that allow attacker to
crash linux kernel by simulating slip network card from user-space of linux.

------------------------------------------

[Root cause]

When a slip driver is detaching, the slip_close() will act to
cleanup necessary resources and sl->tty is set to NULL in
slip_close(). Meanwhile, the packet we transmit is blocked,
sl_tx_timeout() will be called. Although slip_close() and
sl_tx_timeout() use sl->lock to synchronize, we don`t judge
whether sl->tty equals to NULL in sl_tx_timeout() and the
null pointer dereference bug will happen.

(Thread 1) | (Thread 2)
| slip_close()
| spin_lock_bh(&sl->lock)
| ...
... | sl->tty = NULL //(1)
sl_tx_timeout() | spin_unlock_bh(&sl->lock)
spin_lock(&sl->lock); |
... | ...
tty_chars_in_buffer(sl->tty)|
if (tty->ops->..) //(2) |
... | synchronize_rcu()

We set NULL to sl->tty in position (1) and dereference sl->tty
in position (2).

------------------------------------------

Comment 11 errata-xmlrpc 2024-01-24 15:24:21 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9.0 Extended Update Support

Via RHSA-2024:0431 https://access.redhat.com/errata/RHSA-2024:0431

Comment 12 errata-xmlrpc 2024-01-24 15:25:09 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9.0 Extended Update Support

Via RHSA-2024:0432 https://access.redhat.com/errata/RHSA-2024:0432

Comment 13 errata-xmlrpc 2024-01-24 16:28:30 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9

Via RHSA-2024:0461 https://access.redhat.com/errata/RHSA-2024:0461

Comment 14 errata-xmlrpc 2024-01-24 16:35:37 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9.2 Extended Update Support

Via RHSA-2024:0439 https://access.redhat.com/errata/RHSA-2024:0439

Comment 15 errata-xmlrpc 2024-01-24 16:37:26 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9.2 Extended Update Support

Via RHSA-2024:0448 https://access.redhat.com/errata/RHSA-2024:0448

Comment 16 errata-xmlrpc 2024-01-24 16:42:47 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8.6 Extended Update Support

Via RHSA-2024:0412 https://access.redhat.com/errata/RHSA-2024:0412

Comment 18 errata-xmlrpc 2024-02-20 12:27:56 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8

Via RHSA-2024:0881 https://access.redhat.com/errata/RHSA-2024:0881

Comment 19 errata-xmlrpc 2024-02-20 12:33:01 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8

Via RHSA-2024:0897 https://access.redhat.com/errata/RHSA-2024:0897

Comment 20 errata-xmlrpc 2024-03-12 11:42:59 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8.2 Advanced Update Support
  Red Hat Enterprise Linux 8.2 Telecommunications Update Service
  Red Hat Enterprise Linux 8.2 Update Services for SAP Solutions

Via RHSA-2024:1268 https://access.redhat.com/errata/RHSA-2024:1268

Comment 21 errata-xmlrpc 2024-03-12 11:46:09 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8.2 Telecommunications Update Service

Via RHSA-2024:1269 https://access.redhat.com/errata/RHSA-2024:1269

Comment 22 errata-xmlrpc 2024-03-19 00:22:12 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support
  Red Hat Enterprise Linux 8.4 Update Services for SAP Solutions
  Red Hat Enterprise Linux 8.4 Telecommunications Update Service

Via RHSA-2024:1367 https://access.redhat.com/errata/RHSA-2024:1367

Comment 23 errata-xmlrpc 2024-03-19 15:07:30 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support
  Red Hat Enterprise Linux 8.4 Telecommunications Update Service
  Red Hat Enterprise Linux 8.4 Update Services for SAP Solutions

Via RHSA-2024:1382 https://access.redhat.com/errata/RHSA-2024:1382

Comment 24 errata-xmlrpc 2024-03-19 17:26:47 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8.8 Extended Update Support

Via RHSA-2024:1404 https://access.redhat.com/errata/RHSA-2024:1404


Note You need to log in before you can comment on or make changes to this bug.