Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7824435
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T08:35:49+00:00 2026-06-02T08:35:49+00:00

I have to validate a vulnerability on one of our 64-bit systems which is

  • 0

I have to validate a vulnerability on one of our 64-bit systems which is running glibc-2.9 .

http://scarybeastsecurity.blogspot.in/2011/02/i-got-accidental-code-execution-via.html

The above link gives a script which when passed a magic number apparently leads to arbitrary code execution. But when I tried it on my system, nothing seems to be happening.
Am I doing something wrong? Does the system crash if the vulnerability exists? How do I detect if it’s accidental code execution?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-02T08:35:51+00:00Added an answer on June 2, 2026 at 8:35 am

    If you were to run into the problem on a 64-bit machine, you’d have to mimic the original code but provide a number that wraps the stack on a 64-bit machine. The original number provided was:

    1073741796

    $ bc
    z=1073741796
    z+28
    1073741824
    (z+28)*4
    4294967296
    2^32
    4294967296
    quit
    $
    

    So, one way of describing the input number is (ULONG_MAX – 112) / 4.

    The analogue number for a 64-bit machine is 4611686018427387876:

    $ bc
    x=2^64
    x
    18446744073709551616
    y=x/4
    y
    4611686018427387904
    y-28
    4611686018427387876
    quit
    $
    

    However, to stand a chance of this working, you’d have to modify the reported code to use strtroull() or something similar; atoi() is normally limited to 32-bit integers and would be no use on the 64-bit numbers above. The code also contains:

    num_as = atoi(argv[1]);
    if (num_as < 5) {
        errx(1, "Need 5.");
    }
    p = malloc(num_as);
    

    Where num_as is a size_t and p is a char *. So, you’d have to be able to malloc() a gargantuan amount of space (almost 4 EiB). Most people don’t have enough virtual memory on their machines, even with disk space for backing, to do that. Now, maybe, just maybe, Linux would allow you to over-commit (and let the OOM Killer swoop in later), but the malloc() would more likely fail.

    There were other features that were relevant and affect 32-bit systems in a way that it cannot affect 64-bit systems (yet).

    If you’re going to stand a chance of reproducing it on a 64-bit machine, you probably have to do a 32-bit compilation. Then, if the wind is behind you and you have appropriately old versions of the relevant software perhaps you can reproduce it.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a Java program in which I have to validate an XML message
I have one field which can contain email or mobile (in my case mobile
I have a validate method which seems pretty simple because I use something very
How to validate particular format date string using Javascript? I have one date picker
I have one web application, in this i have to validate one date field
I have to validate two asp.net text boxes. First one has input as :
I have to validate a string which can contain numbers from 1 to 7,
I have a display name field which I have to validate using Ruby regex.
I have a password field in one form. Now I have to validate in
I have to validate two SAML 2.0 assertion signatures. I can parse out all

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.