# CVE-2022-50531: tipc: fix an information leak in tipc\_topsrv\_kern\_subscr

> 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.22% (percentile 7, 2026-11-26)
- **CWE:** CWE-401
- **Published:** 2025-10-07T15:19:21.911Z
- **Modified:** 2026-06-17T05:23:44.140Z

## Who should check

- Anyone running Linux \>= 026321c6d056a54b4145522492245d2b5913ee1d, \< 3d1b83ff7b6575a4e41283203e6b2e25ea700cd7; \>= 026321c6d056a54b4145522492245d2b5913ee1d, \< 567f8de358b61015dcfb8878a1f06c5369a45f54; \>= 026321c6d056a54b4145522492245d2b5913ee1d, \< e558e148938442dd49628cd7ef61c360832bef31; \>= 026321c6d056a54b4145522492245d2b5913ee1d, \< dbc01c0a4e202a7e925dad1d4b7c1d6eb0c81154; \>= 026321c6d056a54b4145522492245d2b5913ee1d, \< fef70f978bc289642501d88d2a3f5e841bd31a67; \>= 026321c6d056a54b4145522492245d2b5913ee1d, \< 777ecaabd614d47c482a5c9031579e66da13989a
- Anyone running Linux 4.17

## Description

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

tipc: fix an information leak in tipc\_topsrv\_kern\_subscr

Use a 8-byte write to initialize sub.usr\_handle in
tipc\_topsrv\_kern\_subscr(), otherwise four bytes remain uninitialized
when issuing setsockopt(..., SOL\_TIPC, ...).
This resulted in an infoleak reported by KMSAN when the packet was
received:

  =====================================================
  BUG: KMSAN: kernel-infoleak in copyout+0xbc/0x100 lib/iov\_iter.c:169
   instrument\_copy\_to\_user ./include/linux/instrumented.h:121
   copyout+0xbc/0x100 lib/iov\_iter.c:169
   \_copy\_to\_iter+0x5c0/0x20a0 lib/iov\_iter.c:527
   copy\_to\_iter ./include/linux/uio.h:176
   simple\_copy\_to\_iter+0x64/0xa0 net/core/datagram.c:513
   \_\_skb\_datagram\_iter+0x123/0xdc0 net/core/datagram.c:419
   skb\_copy\_datagram\_iter+0x58/0x200 net/core/datagram.c:527
   skb\_copy\_datagram\_msg ./include/linux/skbuff.h:3903
   packet\_recvmsg+0x521/0x1e70 net/packet/af\_packet.c:3469
   \_\_\_\_sys\_recvmsg+0x2c4/0x810 net/socket.c:?
   \_\_\_sys\_recvmsg+0x217/0x840 net/socket.c:2743
   \_\_sys\_recvmsg net/socket.c:2773
   \_\_do\_sys\_recvmsg net/socket.c:2783
   \_\_se\_sys\_recvmsg net/socket.c:2780
   \_\_x64\_sys\_recvmsg+0x364/0x540 net/socket.c:2780
   do\_syscall\_x64 arch/x86/entry/common.c:50
   do\_syscall\_64+0x3d/0xb0 arch/x86/entry/common.c:80
   entry\_SYSCALL\_64\_after\_hwframe+0x63/0xcd arch/x86/entry/entry\_64.S:120

  ...

  Uninit was stored to memory at:
   tipc\_sub\_subscribe+0x42d/0xb50 net/tipc/subscr.c:156
   tipc\_conn\_rcv\_sub+0x246/0x620 net/tipc/topsrv.c:375
   tipc\_topsrv\_kern\_subscr+0x2e8/0x400 net/tipc/topsrv.c:579
   tipc\_group\_create+0x4e7/0x7d0 net/tipc/group.c:190
   tipc\_sk\_join+0x2a8/0x770 net/tipc/socket.c:3084
   tipc\_setsockopt+0xae5/0xe40 net/tipc/socket.c:3201
   \_\_sys\_setsockopt+0x87f/0xdc0 net/socket.c:2252
   \_\_do\_sys\_setsockopt net/socket.c:2263
   \_\_se\_sys\_setsockopt net/socket.c:2260
   \_\_x64\_sys\_setsockopt+0xe0/0x160 net/socket.c:2260
   do\_syscall\_x64 arch/x86/entry/common.c:50
   do\_syscall\_64+0x3d/0xb0 arch/x86/entry/common.c:80
   entry\_SYSCALL\_64\_after\_hwframe+0x63/0xcd arch/x86/entry/entry\_64.S:120

  Local variable sub created at:
   tipc\_topsrv\_kern\_subscr+0x57/0x400 net/tipc/topsrv.c:562
   tipc\_group\_create+0x4e7/0x7d0 net/tipc/group.c:190

  Bytes 84-87 of 88 are uninitialized
  Memory access of size 88 starts at ffff88801ed57cd0
  Data copied to user address 0000000020000400
  ...
  =====================================================

## Affected and fixed versions

- Linux: \>= 026321c6d056a54b4145522492245d2b5913ee1d, \< 3d1b83ff7b6575a4e41283203e6b2e25ea700cd7; \>= 026321c6d056a54b4145522492245d2b5913ee1d, \< 567f8de358b61015dcfb8878a1f06c5369a45f54; \>= 026321c6d056a54b4145522492245d2b5913ee1d, \< e558e148938442dd49628cd7ef61c360832bef31; \>= 026321c6d056a54b4145522492245d2b5913ee1d, \< dbc01c0a4e202a7e925dad1d4b7c1d6eb0c81154; \>= 026321c6d056a54b4145522492245d2b5913ee1d, \< fef70f978bc289642501d88d2a3f5e841bd31a67; \>= 026321c6d056a54b4145522492245d2b5913ee1d, \< 777ecaabd614d47c482a5c9031579e66da13989a (cvelist)
- Linux: 4.17 (cvelist)

## Mitigation

- Upgrade Linux to 777ecaabd614d47c482a5c9031579e66da13989a or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2022-50531.md
Affected: Linux >= 026321c6d056a54b4145522492245d2b5913ee1d, < 3d1b83ff7b6575a4e41283203e6b2e25ea700cd7; >= 026321c6d056a54b4145522492245d2b5913ee1d, < 567f8de358b61015dcfb8878a1f06c5369a45f54; >= 026321c6d056a54b4145522492245d2b5913ee1d, < e558e148938442dd49628cd7ef61c360832bef31; >= 026321c6d056a54b4145522…
Fixed in: Linux 3d1b83ff7b6575a4e41283203e6b2e25ea700cd7, Linux 567f8de358b61015dcfb8878a1f06c5369a45f54, Linux 777ecaabd614d47c482a5c9031579e66da13989a

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-50531 being exploited?

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

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

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

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

Linux \>= 026321c6d056a54b4145522492245d2b5913ee1d, \< 3d1b83ff7b6575a4e41283203e6b2e25ea700cd7; \>= 026321c6d056a54b4145522492245d2b5913ee1d, \< 567f8de358b61015dcfb8878a1f06c5369a45f54; \>= 026321c6d056a54b4145522492245d2b5913ee1d, \< e558e148938442dd49628cd7ef61c360832bef31; \>= 026321c6d056a54b4145522492245d2b5913ee1d, \< dbc01c0a4e202a7e925dad1d4b7c1d6eb0c81154; \>= 026321c6d056a54b4145522492245d2b5913ee1d, \< fef70f978bc289642501d88d2a3f5e841bd31a67; \>= 026321c6d056a54b4145522492245d2b5913ee1d, \< 777ecaabd614d47c482a5c9031579e66da13989a; Linux 4.17.

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

Yes. Fixed in Linux 3d1b83ff7b6575a4e41283203e6b2e25ea700cd7, Linux 567f8de358b61015dcfb8878a1f06c5369a45f54, Linux 777ecaabd614d47c482a5c9031579e66da13989a. Upgrade Linux to 777ecaabd614d47c482a5c9031579e66da13989a or later.

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

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/3d1b83ff7b6575a4e41283203e6b2e25ea700cd7>
- patch: <https://git.kernel.org/stable/c/567f8de358b61015dcfb8878a1f06c5369a45f54>
- patch: <https://git.kernel.org/stable/c/e558e148938442dd49628cd7ef61c360832bef31>
- patch: <https://git.kernel.org/stable/c/dbc01c0a4e202a7e925dad1d4b7c1d6eb0c81154>
- patch: <https://git.kernel.org/stable/c/fef70f978bc289642501d88d2a3f5e841bd31a67>
- patch: <https://git.kernel.org/stable/c/777ecaabd614d47c482a5c9031579e66da13989a>

## 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-50531>

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