PSX-SCENE Forum Discussion for Sony PlayStation/PsOne/PS2/PS3/PSP/PS VITA
  • Developer Naehrwert Explains Possible lv2_kernel Exploit

    Roughly ninteen hours ago I got a Tweet from developer naehrwert regarding exploiting LV2 of the PlayStation 3. Unfortunately life takes it's toll and I was unable to get this information to you quicker. With that said he also stated in a previous Tweet, "sadly this is not as nice as it looks like". So don't get too excited yet. In a recent blog post by the developer he highlights a stack overflow vulnerability in the PS3's lv2_kernel. But the kernel exploit has it's challenges and he invokes other developers who might be up to the challenge. Here is a quote from the developer.


    About lv2_kernel exploit:
    A long while ago KaKaRoTo pointed me to a stack overflow he found while reversing lv2_kernel. But there are two problems:

    1. The vulnerability is in a protected syscall (the SELF calling it got to have the 0×40… control flags set). So you’d first need to find a suitable usermode exploit (don’t ask us), that gives you code execution with the right privileges.
    2. The payload data is copied to lv2 heap first and the function will do a free call on it before the payload has any chance to get executed. This might not sound like a problem but it looks like lv2′s heap implementation will overwrite the free’ed space with 0xABADCAFE and thus destroy the payload.


    Here is my sample implementation for 3.41 lv2_kernel (although the vulnerability should be present in all versions of lv2 up to the latest firmware), maybe someone of you will find a way to overcome problem (2.) and can get something nice out of it because right now it’s only good to crash lv2.
    Source: @naehrwert via nwert.wordpress

    PSX-SCENE: The Pinnacle Scene Xenocracy
    nullptr likes this.
    Comments 17 Comments
    1. JOshISPoser's Avatar
      JOshISPoser -
      anyone care to explain this in laymen terms? I thought we already have done something with lv2...
    1. Mathematician's Avatar
      Mathematician -
      Is there anyway to modify the free call to write the payload instead of 0xABADCAFE?

      I guess if that was possible, it would be possible to write the free call elsewhere where it wouldn't interfere with the payload or just have it modified to not write anything at all.

      Is there anyway to protect the memory addresses to prevent the freecall to have write access in the payload regions. Maybe before lv2 functions, be able to escalate protections in the payload region to only read instead of write after the payload is written? (which brings up a good question, when does the payload get written there)

      Does the freecall function eventually time out if it cannot write the free space?
    1. Witchfinder's Avatar
      Witchfinder -
      Quote Originally Posted by Mathematician View Post
      Is there anyway to modify the free call to write the payload instead of 0xABADCAFE?

      I guess if that was possible, it would be possible to write the free call elsewhere where it wouldn't interfere with the payload or just have it modified to not write anything at all.

      Is there anyway to protect the memory addresses to prevent the freecall to have write access in the payload regions. Maybe before lv2 functions, be able to escalate protections in the payload region to only read instead of write after the payload is written? (which brings up a good question, when does the payload get written there)

      Does the freecall function eventually time out if it cannot write the free space?
      How about 1xAGOODCAFE ?
    1. SlayeD's Avatar
      SlayeD -
      Just pls say! this is a Big step for a new 3.60+ CFW.
    1. JOshISPoser's Avatar
      JOshISPoser -
      we need an encrypt key for that.
    1. cloud17's Avatar
      cloud17 -
      Quote Originally Posted by Witchfinder View Post
      How about 1xAGOODCAFE ?
      LMAO you made my day sir xD
    1. Gradius's Avatar
      Gradius -
      This ain't for new "CFW 3.60".

      This is for CFW 4.25 !
    1. Ramosxtreme1976's Avatar
      Ramosxtreme1976 -
      i hope a cfw does come out that would the shit
    1. JOshISPoser's Avatar
      JOshISPoser -
      so, i guess i was kinda wrong. i don't understand this too much at all.
    1. Ziken's Avatar
      Ziken -
      Quote Originally Posted by Gradius View Post
      This ain't for new "CFW 3.60".

      This is for CFW 4.25 !
      So, basically, what this article is telling us is that, if LV2 is possible, then it mean that CFW 4.25 is possible?
    1. crossx's Avatar
      crossx -
      life takes it's toll
      the kernel exploit has it's challenges
      please fix this
    1. romaan's Avatar
      romaan -
      did not understand one: why so many nop (empty cycle) need?
    1. CS67700's Avatar
      CS67700 -
      Bragging about things that will "presumably work" isn't gonna do it.

      If those guys really knew what they were doing, they wouldn't wait for someone else to do it, but would actually do it.

      We had our share of brag and drama with 13 yo devs like matthieul, enough of it.

      Some results, please.

      C4 eva never brags about anything, takes time for him to release stuff, but he always gets the job done properly.
    1. vronz's Avatar
      vronz -
      Quote Originally Posted by Witchfinder View Post
      How about 1xAGOODCAFE ?
      there are no "G" and "O" in hexadecimal numbers, that's why it's 0xABADCAFE, because hexadecimal numbers include the letters A, B, C, D, E, F and the digits from 0 to 9, as well "0x" is used in C-language notation to denote that hexadecimal number follows and thus no "1x" either. so, you're out of luck with "1xAGOODCAFE".
    1. Mathematician's Avatar
      Mathematician -
      Replace G = 6 O = 0
      1xA600DCAFE

      (It's not the same, we need to make base 17 numbers to include G). Not to mention, mathematically the symmetricness of base 17 would be quite chaotic.
    1. preciousRoy's Avatar
      preciousRoy -
      Quote Originally Posted by romaan View Post
      did not understand one: why so many nop (empty cycle) need?
      It's a nop sled. It's a common method in exploits to get your payload code to the correct offset of a page of memory. Basically you're using the empty cycles as padding to overwrite a chunk of code in RAM.
    1. DRIVER1's Avatar
      DRIVER1 -
      thanks
  • Daily Digest


    Want to receive the latest PSX info in your email?

    Sign up for our Daily Digest!



    Want to learn more about the team keeping you up to date with the latest scene news?

    Read about them now!

    Check out our Developer bios, too!

  • Recent Threads

    DaBOSS54320

    Where to buy E3 Flasher $90 or under

    Thread Starter: DaBOSS54320

    I need an E3 flasher for my CECH-2001a slim on 4.41 and it needs to be $90 or under (With shipping/tax) and in the US and pay with VISA.

    Last Post By: DaBOSS54320 Today, 02:34 PM Go to last post
    shengoro86

    Phillips CD-I Emulator Request

    Thread Starter: shengoro86

    Hi Everyone,

    I looked around and could not find info on this.
    Please correct me if there is.

    Is there a Phillips

    Last Post By: shengoro86 Today, 02:02 PM Go to last post
    ng80092a

    sluggish sound on psx iso+cue files with multiman

    Thread Starter: ng80092a

    installed multiman 4.20.00 full cex
    updated to 4.20.04
    rebug 4.30.2

    most of my psx games work trough iso+cue files, on retro

    Last Post By: ng80092a Today, 01:48 PM Go to last post
    karim-psx

    Xbox One/PS4 which one are you interested in ?

    Thread Starter: karim-psx

    Now that the Xbox One is revealed, the next generation era has almost begun. We also have much info about the PS4, and M$'s new Xbox. Which one are you

    Last Post By: ccfman2004 Today, 02:39 PM Go to last post
    steverobbo

    noisy ps3?

    Thread Starter: steverobbo

    ive got a phat 60gb ps3, last few days ive noticed it getting a bit louder than it used to be,the fans seem to be working ok,coz the air coming out the

    Last Post By: steverobbo Today, 01:01 PM Go to last post
    TheMoon

    PS2 cannot play DVD video discs

    Thread Starter: TheMoon

    Yeah, this is happening. Got 100+ hits on the same topic from google. Unfortunately, I've a different problem.

    This is PS2-slim scph-9001

    Last Post By: TheMoon Today, 10:04 AM Go to last post
  • Recent Comments

    NeverGoingBack

    PSIO Team Update To Project PlayStation Input Output - A PS1 SD Card Hack

    If this provides 90%+ compatibility, I would see it as being the easiest and most authentic way to... Go to last post

    NeverGoingBack Today 01:44 PM
    Tranced

    Simple PS3Updates v1.6 Build 2 Final

    Quakes69 has contributed well over here. I for one like his different GUI's. Although some are in... Go to last post

    Tranced Today 12:49 PM
    SwordOfWar

    Sony's Testing a Better, Faster Video Streaming Technology.

    stop crying. You got discounted movies. you're not going to buy a movie just to test it. you're... Go to last post

    SwordOfWar Today 12:42 PM
    xboxmods2977

    PSIO Team Update To Project PlayStation Input Output - A PS1 SD Card Hack

    Exactly what I was thinking. Sounds Expensive. I have an older model Playstation in my closet (one... Go to last post

    xboxmods2977 Today 12:16 PM
    kornman887

    Sony's Testing a Better, Faster Video Streaming Technology.

    Then make a video "exclusive" for this event, get more attention for free. Go to last post

    kornman887 Today 10:51 AM
    BahumatLord

    Sony's Testing a Better, Faster Video Streaming Technology.

    They want you to pay to test something for them and they can't even put up any recent movies? I... Go to last post

    BahumatLord Today 10:50 AM
    krytonic

    Sony's Testing a Better, Faster Video Streaming Technology.

    Let's use some logic here. Every movie they sell or give away they have to pay the copywright... Go to last post

    krytonic Today 10:44 AM
    Syafiq2357

    Simple PS3Updates v1.6 Build 2 Final

    Thank you, Quake. :) Go to last post

    Syafiq2357 Today 10:21 AM
    brunoso

    Sony's Testing a Better, Faster Video Streaming Technology.

    "harder, better, faster, stronger" - Daft Punk Rules!!!! Go to last post

    brunoso Today 07:54 AM
    worrorfight

    Sony's Testing a Better, Faster Video Streaming Technology.

    I think it's pretty cool that they are improving it, For this gen-consoles PS4 will most likely win... Go to last post

    worrorfight Today 07:50 AM