{
  "cveId": "CVE-2024-47702",
  "url": "https://patchblox.com/security/cve/CVE-2024-47702",
  "summary": "CVE-2024-47702 is fixed in 26 products on 1 platform, first by DEBIAN-CVE-2024-47702, released October 21, 2024. It is not reported as exploited. Patch Radar priority: Routine.",
  "title": "bpf: Fail verification for sign-extension of packet data/data_end/data_meta",
  "description": "In the Linux kernel, the following vulnerability has been resolved:  bpf: Fail verification for sign-extension of packet data/data_end/data_meta  syzbot reported a kernel crash due to   commit 1f1e864b6555 (\u0022bpf: Handle sign-extenstin ctx member accesses\u0022). The reason is due to sign-extension of 32-bit load for packet data/data_end/data_meta uapi field.  The original code looks like:         r2 = *(s32 *)(r1 \u002B 76) /* load __sk_buff-\u003Edata */         r3 = *(u32 *)(r1 \u002B 80) /* load __sk_buff-\u003Edata_end */         r0 = r2         r0 \u002B= 8         if r3 \u003E r0 goto \u002B1         ... Note that __sk_buff-\u003Edata load has 32-bit sign extension.  After verification and convert_ctx_accesses(), the final asm code looks like:         r2 = *(u64 *)(r1 \u002B208)         r2 = (s32)r2         r3 = *(u64 *)(r1 \u002B80)         r0 = r2         r0 \u002B= 8         if r3 \u003E r0 goto pc\u002B1         ... Note that \u0027r2 = (s32)r2\u0027 may make the kernel __sk_buff-\u003Edata address invalid which may cause runtime failure.  Currently, in C code, typically we have         void *data = (void *)(long)skb-\u003Edata;         void *data_end = (void *)(long)skb-\u003Edata_end;         ... and it will generate         r2 = *(u64 *)(r1 \u002B208)         r3 = *(u64 *)(r1 \u002B80)         r0 = r2         r0 \u002B= 8         if r3 \u003E r0 goto pc\u002B1  If we allow sign-extension,         void *data = (void *)(long)(int)skb-\u003Edata;         void *data_end = (void *)(long)skb-\u003Edata_end;         ... the generated code looks like         r2 = *(u64 *)(r1 \u002B208)         r2 \u003C\u003C= 32         r2 s\u003E\u003E= 32         r3 = *(u64 *)(r1 \u002B80)         r0 = r2         r0 \u002B= 8         if r3 \u003E r0 goto pc\u002B1 and this will cause verification failure since \u0022r2 \u003C\u003C= 32\u0022 is not allowed as \u0022r2\u0022 is a packet pointer.  To fix this issue for case   r2 = *(s32 *)(r1 \u002B 76) /* load __sk_buff-\u003Edata */ this patch added additional checking in is_valid_access() callback function for packet data/data_end/data_meta access. If those accesses are with sign-extenstion, the verification will fail.    [1] https://lore.kernel.org/bpf/000000000000c90eee061d236d37@google.com/",
  "published": "2024-10-21T12:15:06Z",
  "severity": "medium",
  "cvss": 5.5,
  "cvssVector": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H",
  "epss": 0.00213,
  "epssPercentile": 0.11683,
  "priority": "Routine",
  "priorityTier": 4,
  "exploited": false,
  "vendorExploited": false,
  "disclosed": false,
  "vendorAdvisory": "https://msrc.microsoft.com/update-guide/vulnerability/CVE-2024-47702",
  "fixes": [
    {
      "platform": "linux",
      "product": "dtb-aarch64",
      "release": "opensuse-leap 15.6",
      "fixedVersion": "6.4.0-150600.23.30.1",
      "fix": "SUSE-SU-2024:4318-1",
      "url": "https://patchblox.com/security/fix/linux/suse-su-2024-4318-1",
      "released": "2024-12-13T15:33:38Z"
    },
    {
      "platform": "linux",
      "product": "kernel-64kb",
      "release": "opensuse-leap 15.6",
      "fixedVersion": "6.4.0-150600.23.30.1",
      "fix": "SUSE-SU-2024:4318-1",
      "url": "https://patchblox.com/security/fix/linux/suse-su-2024-4318-1",
      "released": "2024-12-13T15:33:38Z"
    },
    {
      "platform": "linux",
      "product": "kernel-64kb",
      "release": "sles 15.6",
      "fixedVersion": "6.4.0-150600.23.30.1",
      "fix": "SUSE-SU-2024:4318-1",
      "url": "https://patchblox.com/security/fix/linux/suse-su-2024-4318-1",
      "released": "2024-12-13T15:33:38Z"
    },
    {
      "platform": "linux",
      "product": "kernel-azure",
      "release": "opensuse-leap 15.6",
      "fixedVersion": "6.4.0-150600.8.17.2",
      "fix": "SUSE-SU-2024:3984-1",
      "url": "https://patchblox.com/security/fix/linux/suse-su-2024-3984-1",
      "released": "2024-11-13T10:13:12Z"
    },
    {
      "platform": "linux",
      "product": "kernel-azure",
      "release": "sles 15.6",
      "fixedVersion": "6.4.0-150600.8.17.2",
      "fix": "SUSE-SU-2024:3984-1",
      "url": "https://patchblox.com/security/fix/linux/suse-su-2024-3984-1",
      "released": "2024-11-13T10:13:12Z"
    },
    {
      "platform": "linux",
      "product": "kernel-coco",
      "release": "sles 15.6",
      "fixedVersion": "6.4.0-15061.9.coco15sp6.1",
      "fix": "SUSE-SU-2024:4387-1",
      "url": "https://patchblox.com/security/fix/linux/suse-su-2024-4387-1",
      "released": "2024-12-19T15:39:02Z"
    },
    {
      "platform": "linux",
      "product": "kernel-coco_debug",
      "release": "sles 15.6",
      "fixedVersion": "6.4.0-15061.9.coco15sp6.1",
      "fix": "SUSE-SU-2024:4387-1",
      "url": "https://patchblox.com/security/fix/linux/suse-su-2024-4387-1",
      "released": "2024-12-19T15:39:02Z"
    },
    {
      "platform": "linux",
      "product": "kernel-debug",
      "release": "opensuse-leap 15.6",
      "fixedVersion": "6.4.0-150600.23.30.1",
      "fix": "SUSE-SU-2024:4318-1",
      "url": "https://patchblox.com/security/fix/linux/suse-su-2024-4318-1",
      "released": "2024-12-13T15:33:38Z"
    },
    {
      "platform": "linux",
      "product": "kernel-default",
      "release": "opensuse-leap 15.6",
      "fixedVersion": "6.4.0-150600.23.30.1",
      "fix": "SUSE-SU-2024:4318-1",
      "url": "https://patchblox.com/security/fix/linux/suse-su-2024-4318-1",
      "released": "2024-12-13T15:33:38Z"
    },
    {
      "platform": "linux",
      "product": "kernel-default",
      "release": "sles 15.6",
      "fixedVersion": "6.4.0-150600.23.30.1",
      "fix": "SUSE-SU-2024:4318-1",
      "url": "https://patchblox.com/security/fix/linux/suse-su-2024-4318-1",
      "released": "2024-12-13T15:33:38Z"
    },
    {
      "platform": "linux",
      "product": "kernel-default-base",
      "release": "opensuse-leap 15.6",
      "fixedVersion": "6.4.0-150600.23.30.1.150600.12.12.6",
      "fix": "SUSE-SU-2024:4318-1",
      "url": "https://patchblox.com/security/fix/linux/suse-su-2024-4318-1",
      "released": "2024-12-13T15:33:38Z"
    },
    {
      "platform": "linux",
      "product": "kernel-default-base",
      "release": "sles 15.6",
      "fixedVersion": "6.4.0-150600.23.30.1.150600.12.12.6",
      "fix": "SUSE-SU-2024:4318-1",
      "url": "https://patchblox.com/security/fix/linux/suse-su-2024-4318-1",
      "released": "2024-12-13T15:33:38Z"
    },
    {
      "platform": "linux",
      "product": "kernel-docs",
      "release": "opensuse-leap 15.6",
      "fixedVersion": "6.4.0-150600.23.30.1",
      "fix": "SUSE-SU-2024:4318-1",
      "url": "https://patchblox.com/security/fix/linux/suse-su-2024-4318-1",
      "released": "2024-12-13T15:33:38Z"
    },
    {
      "platform": "linux",
      "product": "kernel-docs",
      "release": "sles 15.6",
      "fixedVersion": "6.4.0-150600.23.30.1",
      "fix": "SUSE-SU-2024:4318-1",
      "url": "https://patchblox.com/security/fix/linux/suse-su-2024-4318-1",
      "released": "2024-12-13T15:33:38Z"
    },
    {
      "platform": "linux",
      "product": "kernel-kvmsmall",
      "release": "opensuse-leap 15.6",
      "fixedVersion": "6.4.0-150600.23.30.1",
      "fix": "SUSE-SU-2024:4318-1",
      "url": "https://patchblox.com/security/fix/linux/suse-su-2024-4318-1",
      "released": "2024-12-13T15:33:38Z"
    },
    {
      "platform": "linux",
      "product": "kernel-livepatch-SLE15-SP6-RT_Update_5",
      "release": "sles 15.6",
      "fixedVersion": "1-150600.1.3.1",
      "fix": "SUSE-SU-2024:3986-1",
      "url": "https://patchblox.com/security/fix/linux/suse-su-2024-3986-1",
      "released": "2024-11-13T10:13:55Z"
    },
    {
      "platform": "linux",
      "product": "kernel-livepatch-SLE15-SP6_Update_6",
      "release": "sles 15.6",
      "fixedVersion": "1-150600.13.3.5",
      "fix": "SUSE-SU-2024:4318-1",
      "url": "https://patchblox.com/security/fix/linux/suse-su-2024-4318-1",
      "released": "2024-12-13T15:33:38Z"
    },
    {
      "platform": "linux",
      "product": "kernel-obs-build",
      "release": "opensuse-leap 15.6",
      "fixedVersion": "6.4.0-150600.23.30.1",
      "fix": "SUSE-SU-2024:4318-1",
      "url": "https://patchblox.com/security/fix/linux/suse-su-2024-4318-1",
      "released": "2024-12-13T15:33:38Z"
    },
    {
      "platform": "linux",
      "product": "kernel-obs-build",
      "release": "sles 15.6",
      "fixedVersion": "6.4.0-150600.23.30.1",
      "fix": "SUSE-SU-2024:4318-1",
      "url": "https://patchblox.com/security/fix/linux/suse-su-2024-4318-1",
      "released": "2024-12-13T15:33:38Z"
    },
    {
      "platform": "linux",
      "product": "kernel-obs-qa",
      "release": "opensuse-leap 15.6",
      "fixedVersion": "6.4.0-150600.23.30.1",
      "fix": "SUSE-SU-2024:4318-1",
      "url": "https://patchblox.com/security/fix/linux/suse-su-2024-4318-1",
      "released": "2024-12-13T15:33:38Z"
    },
    {
      "platform": "linux",
      "product": "kernel-rt",
      "release": "opensuse-leap 15.6",
      "fixedVersion": "6.4.0-150600.10.17.1",
      "fix": "SUSE-SU-2024:3986-1",
      "url": "https://patchblox.com/security/fix/linux/suse-su-2024-3986-1",
      "released": "2024-11-13T10:13:55Z"
    },
    {
      "platform": "linux",
      "product": "kernel-rt_debug",
      "release": "opensuse-leap 15.6",
      "fixedVersion": "6.4.0-150600.10.17.1",
      "fix": "SUSE-SU-2024:3986-1",
      "url": "https://patchblox.com/security/fix/linux/suse-su-2024-3986-1",
      "released": "2024-11-13T10:13:55Z"
    },
    {
      "platform": "linux",
      "product": "kernel-source",
      "release": "opensuse-leap 15.6",
      "fixedVersion": "6.4.0-150600.23.30.1",
      "fix": "SUSE-SU-2024:4318-1",
      "url": "https://patchblox.com/security/fix/linux/suse-su-2024-4318-1",
      "released": "2024-12-13T15:33:38Z"
    },
    {
      "platform": "linux",
      "product": "kernel-source",
      "release": "sles 15.6",
      "fixedVersion": "6.4.0-150600.23.30.1",
      "fix": "SUSE-SU-2024:4318-1",
      "url": "https://patchblox.com/security/fix/linux/suse-su-2024-4318-1",
      "released": "2024-12-13T15:33:38Z"
    },
    {
      "platform": "linux",
      "product": "kernel-source-azure",
      "release": "opensuse-leap 15.6",
      "fixedVersion": "6.4.0-150600.8.17.1",
      "fix": "SUSE-SU-2024:3984-1",
      "url": "https://patchblox.com/security/fix/linux/suse-su-2024-3984-1",
      "released": "2024-11-13T10:13:12Z"
    },
    {
      "platform": "linux",
      "product": "kernel-source-azure",
      "release": "sles 15.6",
      "fixedVersion": "6.4.0-150600.8.17.1",
      "fix": "SUSE-SU-2024:3984-1",
      "url": "https://patchblox.com/security/fix/linux/suse-su-2024-3984-1",
      "released": "2024-11-13T10:13:12Z"
    },
    {
      "platform": "linux",
      "product": "kernel-source-coco",
      "release": "sles 15.6",
      "fixedVersion": "6.4.0-15061.9.coco15sp6.1",
      "fix": "SUSE-SU-2024:4387-1",
      "url": "https://patchblox.com/security/fix/linux/suse-su-2024-4387-1",
      "released": "2024-12-19T15:39:02Z"
    },
    {
      "platform": "linux",
      "product": "kernel-source-rt",
      "release": "opensuse-leap 15.6",
      "fixedVersion": "6.4.0-150600.10.17.1",
      "fix": "SUSE-SU-2024:3986-1",
      "url": "https://patchblox.com/security/fix/linux/suse-su-2024-3986-1",
      "released": "2024-11-13T10:13:55Z"
    },
    {
      "platform": "linux",
      "product": "kernel-syms",
      "release": "opensuse-leap 15.6",
      "fixedVersion": "6.4.0-150600.23.30.1",
      "fix": "SUSE-SU-2024:4318-1",
      "url": "https://patchblox.com/security/fix/linux/suse-su-2024-4318-1",
      "released": "2024-12-13T15:33:38Z"
    },
    {
      "platform": "linux",
      "product": "kernel-syms",
      "release": "sles 15.6",
      "fixedVersion": "6.4.0-150600.23.30.1",
      "fix": "SUSE-SU-2024:4318-1",
      "url": "https://patchblox.com/security/fix/linux/suse-su-2024-4318-1",
      "released": "2024-12-13T15:33:38Z"
    },
    {
      "platform": "linux",
      "product": "kernel-syms-azure",
      "release": "opensuse-leap 15.6",
      "fixedVersion": "6.4.0-150600.8.17.1",
      "fix": "SUSE-SU-2024:3984-1",
      "url": "https://patchblox.com/security/fix/linux/suse-su-2024-3984-1",
      "released": "2024-11-13T10:13:12Z"
    },
    {
      "platform": "linux",
      "product": "kernel-syms-azure",
      "release": "sles 15.6",
      "fixedVersion": "6.4.0-150600.8.17.1",
      "fix": "SUSE-SU-2024:3984-1",
      "url": "https://patchblox.com/security/fix/linux/suse-su-2024-3984-1",
      "released": "2024-11-13T10:13:12Z"
    },
    {
      "platform": "linux",
      "product": "kernel-syms-coco",
      "release": "sles 15.6",
      "fixedVersion": "6.4.0-15061.9.coco15sp6.1",
      "fix": "SUSE-SU-2024:4387-1",
      "url": "https://patchblox.com/security/fix/linux/suse-su-2024-4387-1",
      "released": "2024-12-19T15:39:02Z"
    },
    {
      "platform": "linux",
      "product": "kernel-syms-rt",
      "release": "opensuse-leap 15.6",
      "fixedVersion": "6.4.0-150600.10.17.1",
      "fix": "SUSE-SU-2024:3986-1",
      "url": "https://patchblox.com/security/fix/linux/suse-su-2024-3986-1",
      "released": "2024-11-13T10:13:55Z"
    },
    {
      "platform": "linux",
      "product": "kernel-zfcpdump",
      "release": "opensuse-leap 15.6",
      "fixedVersion": "6.4.0-150600.23.30.1",
      "fix": "SUSE-SU-2024:4318-1",
      "url": "https://patchblox.com/security/fix/linux/suse-su-2024-4318-1",
      "released": "2024-12-13T15:33:38Z"
    },
    {
      "platform": "linux",
      "product": "kernel-zfcpdump",
      "release": "sles 15.6",
      "fixedVersion": "6.4.0-150600.23.30.1",
      "fix": "SUSE-SU-2024:4318-1",
      "url": "https://patchblox.com/security/fix/linux/suse-su-2024-4318-1",
      "released": "2024-12-13T15:33:38Z"
    },
    {
      "platform": "linux",
      "product": "linux",
      "release": "Debian 13.5 (trixie)",
      "fixedVersion": "6.11.2-1",
      "fix": "DEBIAN-CVE-2024-47702",
      "url": "https://patchblox.com/security/fix/linux/debian-cve-2024-47702",
      "released": "2024-10-21T12:15:06Z"
    },
    {
      "platform": "linux",
      "product": "linux",
      "release": "Debian 14",
      "fixedVersion": "6.11.2-1",
      "fix": "DEBIAN-CVE-2024-47702",
      "url": "https://patchblox.com/security/fix/linux/debian-cve-2024-47702",
      "released": "2024-10-21T12:15:06Z"
    }
  ],
  "noFixYet": [],
  "dataAsOf": "2026-11-08T06:59:42Z",
  "attribution": {
    "text": "Data: Patchblox Patch Radar",
    "url": "https://patchblox.com/security/patch-radar",
    "terms": "https://patchblox.com/security/patch-radar/use-the-data"
  }
}