Skip to content

Potential buffer overflow in ns_sprintrrf TSIG handling path #514680

Closed

Description

@nixpkgs-security-tracker

Description

The deprecated functions ns_printrrf, ns_printrr and fp_nquery in the GNU C Library version 2.2 and newer fail to enforce the caller-supplied buffer length, and can result in an out-of-bounds write when printing TSIG records.

References

7.3 HIGH | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L
  • CVSS version: 3.1
  • Attack Vector (AV): Network (N)
  • Attack Complexity (AC): Low (L)
  • Privileges Required (PR): None (N)
  • User Interaction (UI): None (N)
  • Scope (S): Unchanged (U)
  • Confidentiality (C): Low (L)
  • Integrity (I): Low (L)
  • Availability (A): Low (L)
Affected packages

Activity

  1. added
    1.severity: security
    on Apr 29, 2026
  2. Ma27 commented on May 1, 2026

    @Ma27
    Member

    We're affected since the symbols in question are part of our libresolv.so.2. However, as the advisory says, these are functions for debugging only and deprecated, so upstream's expectation is that the usage is pretty low. Also, libresolv itself doesn't use this in normal operation.

    This is also evident by the fact that at the time of writing this response, there's a patch series for it (https://inbox.sourceware.org/libc-alpha/[email protected]/), but no further communication.

    On glibc's master there's only an advisory today (https://sourceware.org/git/?p=glibc.git;a=shortlog;h=ef2e5453b166b9339fd92b685c10312b423be7eb), no fix.

    Not actrionable for now.

  3. self-assigned this
    on May 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

1.severity: security

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions