CVE catalog

CVE-2022-49006

linux: CVE-2022-49006

[CVE catalog]

Severity
Medium · CVSS 6.7CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
Published
Source
[NVD] · [CVE record]
EPSS
0.26% · Oct 25, 2026

In the Linux kernel, the following vulnerability has been resolved: tracing: Free buffers when a used dynamic event is removed After 65536 dynamic events have been added and removed, the "type" field of the event then uses the first type number that is available (not currently used by other events). A type number is the identifier of the binary blobs in the tracing ring buffer (known as events) to map them to logic that can parse the binary blob. The issue is that if a dynamic event (like a kprobe event) is traced and is in the ring buffer, and then that event is removed (because it is dynamic, which means it can be created and destroyed), if another dynamic event is created that has the same number that new event's logic on parsing the binary blob will be used. To show how this can be an issue, the following can crash the kernel: # cd /sys/kernel/tracing # for i in `seq 65536`; do echo 'p:kprobes/foo do_sys_openat2 $arg1:u32' > kprobe_events # done For every iteration of the above, the writing to the kprobe_events will remove the old event and create a new one (with the same format) and increase the type number to the next available on until the type number reaches over 65535 which is the max number for the 16 bit type. After it reaches that number, the logic to allocate a new number simply looks for the next available number. When an dynamic event is removed, that number is then available to be reused by the next dynamic event created. That is, once the above reaches the max number, the number assigned to the event in that loop will remain the same. Now that means deleting one dynamic event and created another will reuse the previous events type number. This is where bad things can happen. After the above loop finishes, the kprobes/foo event which reads the do_sys_openat2 function call's first parameter as an integer. # echo 1 > kprobes/foo/enable # cat /etc/passwd > /dev/null # cat trace cat-2211 [005] .... 2007.849603: foo: (do_sys_openat2+0x0/0x130) arg1=4294967196 cat-2211 [005] .... 2007.849620: foo: (do_sys_openat2+0x0/0x130) arg1=4294967196 cat-2211 [005] .... 2007.849838: foo: (do_sys_openat2+0x0/0x130) arg1=4294967196 cat-2211 [005] .... 2007.849880: foo: (do_sys_openat2+0x0/0x130) arg1=4294967196 # echo 0 > kprobes/foo/enable Now if we delete the kprobe and create a new one that reads a string: # echo 'p:kprobes/foo do_sys_openat2 +0($arg2):string' > kprobe_events And now we can the trace: # cat trace sendmail-1942 [002] ..... 530.136320: foo: (do_sys_openat2+0x0/0x240) arg1= cat-2046 [004] ..... 530.930817: foo: (do_sys_openat2+0x0/0x240) arg1="������������������������������������������������������������������������������������������������" cat-2046 [004] ..... 530.930961: foo: (do_sys_openat2+0x0/0x240) arg1="������������������������������������������������������������������������������������������������" cat-2046 [004] ..... 530.934278: foo: (do_sys_openat2+0x0/0x240) arg1="������������������������������������������������������������������������������������������������" cat-2046 [004] ..... 530.934563: foo: (do_sys_openat2+0x0/0x240) arg1="��������������������������������������� ---truncated---

Vulnerable and fixed packages

Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.

DistributionPackageReleaseVersionStatus
Debianlinuxsid7.2.12-1fixed
Debianlinuxforky7.2.12-1fixed
Debianlinuxtrixie6.12.107-1fixed
Debianlinuxtrixie-security6.12.113-1fixed
Debianlinuxbookworm6.1.176-1fixed
Debianlinuxbookworm-security6.1.190-1fixed

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debianlinuxsourcesid6.0.12-1not yet assignedNot reportedNot reported
Debianlinuxsourceforky6.0.12-1not yet assignedNot reportedNot reported
Debianlinuxsourcetrixie6.0.12-1not yet assignedNot reportedNot reported
Debianlinuxsourcebookworm6.0.12-1not yet assignedNot reportedNot reported

OpenFactory catalog packages

Matching against OpenFactory catalog package versions is in progress.

[Debian 12 (Bookworm)]

  • [bpftool]Unknown

    Source package: [linux]

    Details (6)
    • 7.1.0+6.1.176-1 · amd64 · bookworm

      Fixed · Fixed: 6.0.12-1

      dsa · linux · debian · bookworm

    • 7.1.0+6.1.176-1 · arm64 · bookworm

      Fixed · Fixed: 6.0.12-1

      dsa · linux · debian · bookworm

    • 7.5.0+6.12.95-1~bpo12+1 · amd64 · bookworm-backports

      Fixed · Fixed: 6.0.12-1

      dsa · linux · debian · bookworm

    • 7.5.0+6.12.95-1~bpo12+1 · arm64 · bookworm-backports

      Fixed · Fixed: 6.0.12-1

      dsa · linux · debian · bookworm

    • 7.1.0+6.1.180-1 · amd64 · bookworm-security

      Fixed · Fixed: 6.0.12-1

      dsa · linux · debian · bookworm

    • 7.1.0+6.1.180-1 · arm64 · bookworm-security

      Fixed · Fixed: 6.0.12-1

      dsa · linux · debian · bookworm

  • Source package: [linux]

    Details (6)
    • 6.1.176-1 · amd64 · bookworm

      Fixed · Fixed: 6.0.12-1

      dsa · linux · debian · bookworm

    • 6.1.176-1 · arm64 · bookworm

      Fixed · Fixed: 6.0.12-1

      dsa · linux · debian · bookworm

    • 6.12.95-1~bpo12+1 · amd64 · bookworm-backports

      Fixed · Fixed: 6.0.12-1

      dsa · linux · debian · bookworm

    • 6.12.95-1~bpo12+1 · arm64 · bookworm-backports

      Fixed · Fixed: 6.0.12-1

      dsa · linux · debian · bookworm

    • 6.1.180-1 · amd64 · bookworm-security

      Fixed · Fixed: 6.0.12-1

      dsa · linux · debian · bookworm

    • 6.1.180-1 · arm64 · bookworm-security

      Fixed · Fixed: 6.0.12-1

      dsa · linux · debian · bookworm

  • [intel-sdsi]Unknown

    Source package: [linux]

    Details (1)
    • 6.12.95-1~bpo12+1 · amd64 · bookworm-backports

      Fixed · Fixed: 6.0.12-1

      dsa · linux · debian · bookworm

  • [libcpupower1]Unknown

    Source package: [linux]

    Details (6)
    • 6.1.176-1 · amd64 · bookworm

      Fixed · Fixed: 6.0.12-1

      dsa · linux · debian · bookworm

    • 6.1.176-1 · arm64 · bookworm

      Fixed · Fixed: 6.0.12-1

      dsa · linux · debian · bookworm

    • 6.12.95-1~bpo12+1 · amd64 · bookworm-backports

      Fixed · Fixed: 6.0.12-1

      dsa · linux · debian · bookworm

    • 6.12.95-1~bpo12+1 · arm64 · bookworm-backports

      Fixed · Fixed: 6.0.12-1

      dsa · linux · debian · bookworm

    • 6.1.180-1 · amd64 · bookworm-security

      Fixed · Fixed: 6.0.12-1

      dsa · linux · debian · bookworm

    • 6.1.180-1 · arm64 · bookworm-security

      Fixed · Fixed: 6.0.12-1

      dsa · linux · debian · bookworm

  • Source package: [linux]

    Details (6)
    • 6.1.176-1 · amd64 · bookworm

      Fixed · Fixed: 6.0.12-1

      dsa · linux · debian · bookworm

    • 6.1.176-1 · arm64 · bookworm

      Fixed · Fixed: 6.0.12-1

      dsa · linux · debian · bookworm

    • 6.12.95-1~bpo12+1 · amd64 · bookworm-backports

      Fixed · Fixed: 6.0.12-1

      dsa · linux · debian · bookworm

    • 6.12.95-1~bpo12+1 · arm64 · bookworm-backports

      Fixed · Fixed: 6.0.12-1

      dsa · linux · debian · bookworm

    • 6.1.180-1 · amd64 · bookworm-security

      Fixed · Fixed: 6.0.12-1

      dsa · linux · debian · bookworm

    • 6.1.180-1 · arm64 · bookworm-security

      Fixed · Fixed: 6.0.12-1

      dsa · linux · debian · bookworm

  • [linux-bpf-dev]Unknown

    Source package: [linux]

    Details (2)
    • 6.12.95-1~bpo12+1 · amd64 · bookworm-backports

      Fixed · Fixed: 6.0.12-1

      dsa · linux · debian · bookworm

    • 6.12.95-1~bpo12+1 · arm64 · bookworm-backports

      Fixed · Fixed: 6.0.12-1

      dsa · linux · debian · bookworm

  • Source package: [linux]

    Details (2)
    • 6.1.176-1 · amd64 · bookworm

      Fixed · Fixed: 6.0.12-1

      dsa · linux · debian · bookworm

    • 6.1.180-1 · amd64 · bookworm-security

      Fixed · Fixed: 6.0.12-1

      dsa · linux · debian · bookworm

  • Source package: [linux]

    Details (4)
    • 6.1.176-1 · amd64 · bookworm

      Fixed · Fixed: 6.0.12-1

      dsa · linux · debian · bookworm

    • 6.1.176-1 · arm64 · bookworm

      Fixed · Fixed: 6.0.12-1

      dsa · linux · debian · bookworm

    • 6.1.180-1 · amd64 · bookworm-security

      Fixed · Fixed: 6.0.12-1

      dsa · linux · debian · bookworm

    • 6.1.180-1 · arm64 · bookworm-security

      Fixed · Fixed: 6.0.12-1

      dsa · linux · debian · bookworm

  • Source package: [linux]

    Details (6)
    • 6.1.176-1 · amd64 · bookworm

      Fixed · Fixed: 6.0.12-1

      dsa · linux · debian · bookworm

    • 6.1.176-1 · arm64 · bookworm

      Fixed · Fixed: 6.0.12-1

      dsa · linux · debian · bookworm

    • 6.12.95-1~bpo12+1 · amd64 · bookworm-backports

      Fixed · Fixed: 6.0.12-1

      dsa · linux · debian · bookworm

    • 6.12.95-1~bpo12+1 · arm64 · bookworm-backports

      Fixed · Fixed: 6.0.12-1

      dsa · linux · debian · bookworm

    • 6.1.180-1 · amd64 · bookworm-security

      Fixed · Fixed: 6.0.12-1

      dsa · linux · debian · bookworm

    • 6.1.180-1 · arm64 · bookworm-security

      Fixed · Fixed: 6.0.12-1

      dsa · linux · debian · bookworm

  • [linux-doc]Unknown

    Source package: [linux]

    Details (32)
    • 6.1.170-3 · all · bookworm

      Fixed · Fixed: 6.0.12-1

      dsa · linux · debian · bookworm

    • 6.1.170-3 · all · bookworm

      Fixed · Fixed: 6.0.12-1

      dsa · linux · debian · bookworm

    • 6.1.176-1 · all · bookworm

      Fixed · Fixed: 6.0.12-1

      dsa · linux · debian · bookworm

    • 6.1.176-1 · all · bookworm

      Fixed · Fixed: 6.0.12-1

      dsa · linux · debian · bookworm

    • 6.12.43-1~bpo12+1 · all · bookworm-backports

      Fixed · Fixed: 6.0.12-1

      dsa · linux · debian · bookworm

    • 6.12.43-1~bpo12+1 · all · bookworm-backports

      Fixed · Fixed: 6.0.12-1

      dsa · linux · debian · bookworm

    • 6.12.57-1~bpo12+1 · all · bookworm-backports

      Fixed · Fixed: 6.0.12-1

      dsa · linux · debian · bookworm

    • 6.12.57-1~bpo12+1 · all · bookworm-backports

      Fixed · Fixed: 6.0.12-1

      dsa · linux · debian · bookworm

    • 6.12.63-1~bpo12+1 · all · bookworm-backports

      Fixed · Fixed: 6.0.12-1

      dsa · linux · debian · bookworm

    • 6.12.63-1~bpo12+1 · all · bookworm-backports

      Fixed · Fixed: 6.0.12-1

      dsa · linux · debian · bookworm

    • 6.12.69-1~bpo12+1 · all · bookworm-backports

      Fixed · Fixed: 6.0.12-1

      dsa · linux · debian · bookworm

    • 6.12.69-1~bpo12+1 · all · bookworm-backports

      Fixed · Fixed: 6.0.12-1

      dsa · linux · debian · bookworm

    • 6.12.73-1~bpo12+1 · all · bookworm-backports

      Fixed · Fixed: 6.0.12-1

      dsa · linux · debian · bookworm

    • 6.12.73-1~bpo12+1 · all · bookworm-backports

      Fixed · Fixed: 6.0.12-1

      dsa · linux · debian · bookworm

    • 6.12.74-2~bpo12+1 · all · bookworm-backports

      Fixed · Fixed: 6.0.12-1

      dsa · linux · debian · bookworm

    • 6.12.74-2~bpo12+1 · all · bookworm-backports

      Fixed · Fixed: 6.0.12-1

      dsa · linux · debian · bookworm

    • 6.12.85-1~bpo12+1 · all · bookworm-backports

      Fixed · Fixed: 6.0.12-1

      dsa · linux · debian · bookworm

    • 6.12.85-1~bpo12+1 · all · bookworm-backports

      Fixed · Fixed: 6.0.12-1

      dsa · linux · debian · bookworm

    • 6.12.86-1~bpo12+1 · all · bookworm-backports

      Fixed · Fixed: 6.0.12-1

      dsa · linux · debian · bookworm

    • 6.12.86-1~bpo12+1 · all · bookworm-backports

      Fixed · Fixed: 6.0.12-1

      dsa · linux · debian · bookworm

    • 6.12.88-1~bpo12+1 · all · bookworm-backports

      Fixed · Fixed: 6.0.12-1

      dsa · linux · debian · bookworm

    • 6.12.88-1~bpo12+1 · all · bookworm-backports

      Fixed · Fixed: 6.0.12-1

      dsa · linux · debian · bookworm

    • 6.12.90-1~bpo12+1 · all · bookworm-backports

      Fixed · Fixed: 6.0.12-1

      dsa · linux · debian · bookworm

    • 6.12.90-1~bpo12+1 · all · bookworm-backports

      Fixed · Fixed: 6.0.12-1

      dsa · linux · debian · bookworm

    • 6.12.90-2~bpo12+1 · all · bookworm-backports

      Fixed · Fixed: 6.0.12-1

      dsa · linux · debian · bookworm

    • 6.12.90-2~bpo12+1 · all · bookworm-backports

      Fixed · Fixed: 6.0.12-1

      dsa · linux · debian · bookworm

    • 6.12.94-1~bpo12+1 · all · bookworm-backports

      Fixed · Fixed: 6.0.12-1

      dsa · linux · debian · bookworm

    • 6.12.94-1~bpo12+1 · all · bookworm-backports

      Fixed · Fixed: 6.0.12-1

      dsa · linux · debian · bookworm

    • 6.12.95-1~bpo12+1 · all · bookworm-backports

      Fixed · Fixed: 6.0.12-1

      dsa · linux · debian · bookworm

    • 6.12.95-1~bpo12+1 · all · bookworm-backports

      Fixed · Fixed: 6.0.12-1

      dsa · linux · debian · bookworm

    • 6.1.180-1 · all · bookworm-security

      Fixed · Fixed: 6.0.12-1

      dsa · linux · debian · bookworm

    • 6.1.180-1 · all · bookworm-security

      Fixed · Fixed: 6.0.12-1

      dsa · linux · debian · bookworm

  • [linux-doc-6.1]Unknown

    Source package: [linux]

    Details (6)
    • 6.1.170-3 · all · bookworm

      Fixed · Fixed: 6.0.12-1

      dsa · linux · debian · bookworm

    • 6.1.170-3 · all · bookworm

      Fixed · Fixed: 6.0.12-1

      dsa · linux · debian · bookworm

    • 6.1.176-1 · all · bookworm

      Fixed · Fixed: 6.0.12-1

      dsa · linux · debian · bookworm

    • 6.1.176-1 · all · bookworm

      Fixed · Fixed: 6.0.12-1

      dsa · linux · debian · bookworm

    • 6.1.180-1 · all · bookworm-security

      Fixed · Fixed: 6.0.12-1

      dsa · linux · debian · bookworm

    • 6.1.180-1 · all · bookworm-security

      Fixed · Fixed: 6.0.12-1

      dsa · linux · debian · bookworm

  • Source package: [linux]

    Details (1)
    • 6.1.170-3 · amd64 · bookworm

      Fixed · Fixed: 6.0.12-1

      dsa · linux · debian · bookworm

  • Source package: [linux]

    Details (1)
    • 6.1.170-3 · arm64 · bookworm

      Fixed · Fixed: 6.0.12-1

      dsa · linux · debian · bookworm

  • Source package: [linux]

    Details (1)
    • 6.1.170-3 · amd64 · bookworm

      Fixed · Fixed: 6.0.12-1

      dsa · linux · debian · bookworm

  • Source package: [linux]

    Details (1)
    • 6.1.170-3 · arm64 · bookworm

      Fixed · Fixed: 6.0.12-1

      dsa · linux · debian · bookworm

  • Source package: [linux]

    Details (2)
    • 6.1.170-3 · all · bookworm

      Fixed · Fixed: 6.0.12-1

      dsa · linux · debian · bookworm

    • 6.1.170-3 · all · bookworm

      Fixed · Fixed: 6.0.12-1

      dsa · linux · debian · bookworm

  • Source package: [linux]

    Details (2)
    • 6.1.170-3 · all · bookworm

      Fixed · Fixed: 6.0.12-1

      dsa · linux · debian · bookworm

    • 6.1.170-3 · all · bookworm

      Fixed · Fixed: 6.0.12-1

      dsa · linux · debian · bookworm

  • Source package: [linux]

    Details (1)
    • 6.1.170-3 · amd64 · bookworm

      Fixed · Fixed: 6.0.12-1

      dsa · linux · debian · bookworm

  • Source package: [linux]

    Details (1)
    • 6.1.170-3 · arm64 · bookworm

      Fixed · Fixed: 6.0.12-1

      dsa · linux · debian · bookworm

  • Source package: [linux]

    Details (1)
    • 6.1.176-1 · amd64 · bookworm

      Fixed · Fixed: 6.0.12-1

      dsa · linux · debian · bookworm

Next results

Observed:

References