# CVE-2022-48865: tipc: fix kernel panic when enabling bearer

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.30% (percentile 16, 2026-11-26)
- **CWE:** CWE-476
- **Published:** 2024-07-16T12:25:27.843Z
- **Modified:** 2026-06-17T05:16:25.033Z

## Who should check

- Anyone running Linux \>= 35c55c9877f8de0ab129fa1a309271d0ecc868b9, \< 2de76d37d4a6dca9b96ea51da24d4290e6cfa1a5; \>= 35c55c9877f8de0ab129fa1a309271d0ecc868b9, \< f96dc3adb9a97b8f3dfdb88796483491a3006b71; \>= 35c55c9877f8de0ab129fa1a309271d0ecc868b9, \< f4f59fdbc748805b08c13dae14c01f0518c77c94; \>= 35c55c9877f8de0ab129fa1a309271d0ecc868b9, \< be4977b847f5d5cedb64d50eaaf2218c3a55a3a3
- Anyone running Linux 4.8

## Description

In the Linux kernel, the following vulnerability has been resolved:

tipc: fix kernel panic when enabling bearer

When enabling a bearer on a node, a kernel panic is observed:

\[    4.498085\] RIP: 0010:tipc\_mon\_prep+0x4e/0x130 \[tipc\]
...
\[    4.520030\] Call Trace:
\[    4.520689\]  \<IRQ\>
\[    4.521236\]  tipc\_link\_build\_proto\_msg+0x375/0x750 \[tipc\]
\[    4.522654\]  tipc\_link\_build\_state\_msg+0x48/0xc0 \[tipc\]
\[    4.524034\]  \_\_tipc\_node\_link\_up+0xd7/0x290 \[tipc\]
\[    4.525292\]  tipc\_rcv+0x5da/0x730 \[tipc\]
\[    4.526346\]  ? \_\_netif\_receive\_skb\_core+0xb7/0xfc0
\[    4.527601\]  tipc\_l2\_rcv\_msg+0x5e/0x90 \[tipc\]
\[    4.528737\]  \_\_netif\_receive\_skb\_list\_core+0x20b/0x260
\[    4.530068\]  netif\_receive\_skb\_list\_internal+0x1bf/0x2e0
\[    4.531450\]  ? dev\_gro\_receive+0x4c2/0x680
\[    4.532512\]  napi\_complete\_done+0x6f/0x180
\[    4.533570\]  virtnet\_poll+0x29c/0x42e \[virtio\_net\]
...

The node in question is receiving activate messages in another
thread after changing bearer status to allow message sending/
receiving in current thread:

         thread 1           \|              thread 2
         --------           \|              --------
                            \|
tipc\_enable\_bearer()        \|
  test\_and\_set\_bit\_lock()   \|
    tipc\_bearer\_xmit\_skb()  \|
                            \| tipc\_l2\_rcv\_msg()
                            \|   tipc\_rcv()
                            \|     \_\_tipc\_node\_link\_up()
                            \|       tipc\_link\_build\_state\_msg()
                            \|         tipc\_link\_build\_proto\_msg()
                            \|           tipc\_mon\_prep()
                            \|           {
                            \|             ...
                            \|             // null-pointer dereference
                            \|             u16 gen = mon-\>dom\_gen;
                            \|             ...
                            \|           }
  // Not being executed yet \|
  tipc\_mon\_create()         \|
  {                         \|
    ...                     \|
    // allocate             \|
    mon = kzalloc();        \|
    ...                     \|
  }                         \|

Monitoring pointer in thread 2 is dereferenced before monitoring data
is allocated in thread 1. This causes kernel panic.

This commit fixes it by allocating the monitoring data before enabling
the bearer to receive messages.

## Affected and fixed versions

- Linux: \>= 35c55c9877f8de0ab129fa1a309271d0ecc868b9, \< 2de76d37d4a6dca9b96ea51da24d4290e6cfa1a5; \>= 35c55c9877f8de0ab129fa1a309271d0ecc868b9, \< f96dc3adb9a97b8f3dfdb88796483491a3006b71; \>= 35c55c9877f8de0ab129fa1a309271d0ecc868b9, \< f4f59fdbc748805b08c13dae14c01f0518c77c94; \>= 35c55c9877f8de0ab129fa1a309271d0ecc868b9, \< be4977b847f5d5cedb64d50eaaf2218c3a55a3a3 (cvelist)
- Linux: 4.8 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2022-48865. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2022-48865.md
Affected: Linux >= 35c55c9877f8de0ab129fa1a309271d0ecc868b9, < 2de76d37d4a6dca9b96ea51da24d4290e6cfa1a5; >= 35c55c9877f8de0ab129fa1a309271d0ecc868b9, < f96dc3adb9a97b8f3dfdb88796483491a3006b71; >= 35c55c9877f8de0ab129fa1a309271d0ecc868b9, < f4f59fdbc748805b08c13dae14c01f0518c77c94; >= 35c55c9877f8de0ab129fa1…
Fixed in: Linux 2de76d37d4a6dca9b96ea51da24d4290e6cfa1a5

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2022-48865 being exploited?

There is no confirmed exploitation: CVE-2022-48865 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.30% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2022-48865?

Medium: CVSS 5.5 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2022-48865?

Linux \>= 35c55c9877f8de0ab129fa1a309271d0ecc868b9, \< 2de76d37d4a6dca9b96ea51da24d4290e6cfa1a5; \>= 35c55c9877f8de0ab129fa1a309271d0ecc868b9, \< f96dc3adb9a97b8f3dfdb88796483491a3006b71; \>= 35c55c9877f8de0ab129fa1a309271d0ecc868b9, \< f4f59fdbc748805b08c13dae14c01f0518c77c94; \>= 35c55c9877f8de0ab129fa1a309271d0ecc868b9, \< be4977b847f5d5cedb64d50eaaf2218c3a55a3a3; Linux 4.8.

### Is there a fix for CVE-2022-48865?

Yes. Fixed in Linux 2de76d37d4a6dca9b96ea51da24d4290e6cfa1a5. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2022-48865?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/2de76d37d4a6dca9b96ea51da24d4290e6cfa1a5>
- patch: <https://git.kernel.org/stable/c/f96dc3adb9a97b8f3dfdb88796483491a3006b71>
- patch: <https://git.kernel.org/stable/c/f4f59fdbc748805b08c13dae14c01f0518c77c94>
- patch: <https://git.kernel.org/stable/c/be4977b847f5d5cedb64d50eaaf2218c3a55a3a3>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2022-48865>

HTML: <https://flawdb.com/CVE-2022-48865> · JSON: <https://flawdb.com/api/v1/entries/CVE-2022-48865>
